DictionaryKeyPolicy not applied to keys that contain non primitive ty… (dotnet/corefx...
authormarcnet80 <46241368+marcnet80@users.noreply.github.com>
Thu, 14 Nov 2019 00:49:54 +0000 (02:49 +0200)
committerDavid Cantu <dacantu@microsoft.com>
Thu, 14 Nov 2019 00:49:54 +0000 (16:49 -0800)
commit9319d62aabd3918c4ccfe72e96ca1add5cb38c5d
treef25618310c01b10b3e90955f776889a6fceb8b8e
parent32388df1ad99d616377b5ec6ca4966d60f10b365
DictionaryKeyPolicy not applied to keys that contain non primitive ty… (dotnet/corefx#41691)

* DictionaryKeyPolicy not applied to keys that contain non primitive types dotnet/corefx#41176

https://github.com/dotnet/corefx/issues/41176#event-2697607085

* dotnet/corefx#41176: DictionaryKeyPolicy not applied to keys that contain non primitive types

https://github.com/dotnet/corefx/issues/41176

* add unit tests

https://github.com/dotnet/corefx/pull/41691

* Remove check for JsonExtensionDataAttribute to avoid reflection.

Commit migrated from https://github.com/dotnet/corefx/commit/d9dd0dac4285368002740333d6772d4db79d82c1
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.HandleDictionary.cs
src/libraries/System.Text.Json/tests/Serialization/DictionaryTests.KeyPolicy.cs