Honor JsonIgnore attribute when applied to unsupported collections (dotnet/corefx...
authorLayomi Akinrinade <laakinri@microsoft.com>
Mon, 19 Aug 2019 13:42:54 +0000 (09:42 -0400)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2019 13:42:54 +0000 (09:42 -0400)
commit0499138ba5a8a790d11662ea2c80b57f8660b64f
tree40d020175f767b2af402325386a6b96369c35a79
parent05d7986266edfda5f02599f646615a67eb01a50b
Honor JsonIgnore attribute when applied to unsupported collections (dotnet/corefx#40401)

* Honor JsonIgnore attribute when applied to unsupported collections

* Address feedback: add more unsupported collections

Commit migrated from https://github.com/dotnet/corefx/commit/6739eab2f4ee9a895575289893edf63b6c234d43
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonClassInfo.AddProperty.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoCommon.cs
src/libraries/System.Text.Json/tests/Serialization/PropertyVisibilityTests.cs