Support nullable values in dictionaries (dotnet/corefx#40991)
authorLayomi Akinrinade <laakinri@microsoft.com>
Tue, 17 Sep 2019 12:38:41 +0000 (08:38 -0400)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 12:38:41 +0000 (08:38 -0400)
commit529563a2aba647d10ed447d2272bb1ae96980a09
tree891e1f05ecfe8de9336d062514faa9350b3b4801
parent0b5abf840284890db2f0d1f19c95b95e43e175cf
Support nullable values in dictionaries (dotnet/corefx#40991)

* Support nullable values in dictionaries

* Address review feedback

* Address feedback

* Defer dictionary key escaping to writer

Commit migrated from https://github.com/dotnet/corefx/commit/a308e93b1f1303be7eab5ce2b8ed11e66cc8e01e
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoCommon.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoNotNullable.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoNotNullableContravariant.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoNullable.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.HandleDictionary.cs
src/libraries/System.Text.Json/tests/Serialization/DictionaryTests.KeyPolicy.cs
src/libraries/System.Text.Json/tests/Serialization/Null.ReadTests.cs
src/libraries/System.Text.Json/tests/Serialization/Null.WriteTests.cs
src/libraries/System.Text.Json/tests/Serialization/NullableTests.cs [new file with mode: 0644]
src/libraries/System.Text.Json/tests/Serialization/TestClasses.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj