mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* JsonSerializer.cs: "SerializeGenericDictionary" is an instance method, fix retrieval of its MethodInfo. Initialize serializeGenericDictionaryMethods (lazily). Add and use GetClosedIDictionaryBase to also handle cases where a non-generic class implements a closed IDictionary<,> (e.g. SomeDictionary : IDictionary<string, object>). Fixes bug #424704. First check for IDictionary<,>, then for IDictionary. 2008-09-20 Juraj Skripsky <[email protected]> * JavaScriptSerializerTest.cs: added test for bug #424704. svn path=/trunk/mcs/; revision=113829
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
2008-09-23 Juraj Skripsky <[email protected]>
|
|
|
|
* JsonSerializer.cs: "SerializeGenericDictionary" is an instance method,
|
|
fix retrieval of its MethodInfo.
|
|
Initialize serializeGenericDictionaryMethods (lazily).
|
|
Add and use GetClosedIDictionaryBase to also handle cases where a
|
|
non-generic class implements a closed IDictionary<,> (e.g.
|
|
SomeDictionary : IDictionary<string, object>). Fixes bug #424704.
|
|
First check for IDictionary<,>, then for IDictionary.
|
|
|
|
2008-09-20 Marek Habersack <[email protected]>
|
|
|
|
* JsonDeserializer.cs: added support for stand-alone NaN, Infinity
|
|
and -Infinity values, as well as the same within an array.
|
|
|
|
2008-09-19 Marek Habersack <[email protected]>
|
|
|
|
* Json.cs: added new Serialize overload which takes a TextWriter
|
|
for its output parameter.
|
|
Added Deserialize methods.
|
|
|
|
* JsonSerializer.cs: made InitialJavaScriptDateTicks internal.
|
|
Added new Serialize overload which takes a TextWriter for its
|
|
output parameter.
|
|
Added WriteValue overloads for float and double - they must not be
|
|
converted to strings as IConvertibles because their Max/MinValue
|
|
end up converted incorrectly.
|
|
|
|
* JavaScriptSerializer.cs: adjustments for the new JSON
|
|
(de)serializer.
|
|
|
|
* JsonDeserializer.cs: new JSON deserializer code, fully compliant
|
|
with the .NET AJAX one.
|
|
|