[bcl] Implement KnownTypes for DataContractJsonSerializer. Fixes #23058 and polymorph...
authorAlexis Christoforides <alexis@thenull.net>
Tue, 7 Oct 2014 23:23:37 +0000 (16:23 -0700)
committerAlexis Christoforides <alexis@thenull.net>
Tue, 7 Oct 2014 23:24:41 +0000 (16:24 -0700)
commit71e152accc727089faffa6b4fd6bf58cb62636cf
treea7284bc652ca599c48b091514ef2f03f7f9061df
parentfbea92153684c2db093a44830818d226fdb17862
[bcl] Implement KnownTypes for DataContractJsonSerializer. Fixes #23058 and polymorphism support.
Also discarded old __type hint behavior in JsonSerializationReader that potentially allowed any loaded type to be instantiated.
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/DataContractJsonSerializer.cs
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/JsonSerializationReader.cs