Honor dictionary key policy when entry value is null (dotnet/corefx#42267)
authorLayomi Akinrinade <laakinri@microsoft.com>
Fri, 1 Nov 2019 02:27:18 +0000 (19:27 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2019 02:27:18 +0000 (19:27 -0700)
commitfa14ce5fc698bb1d7ec3c268f415d53c82767f66
treec7c15e970b5b921695d7ff273749fa09edab1fc9
parent5990c7a18b9ab9d24023638e6d3c23ab74613eec
Honor dictionary key policy when entry value is null (dotnet/corefx#42267)

* Honor dictionary key policy when entry value is null

* Address review feedback

* Remove reverse Json checks

Commit migrated from https://github.com/dotnet/corefx/commit/a24db0ba5666f46f50649810fe698ad267b60331
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