[JsonSerializer] Prevent arbitrary properties from being cached when deserializing...
authorLayomi Akinrinade <laakinri@microsoft.com>
Fri, 7 Aug 2020 17:52:37 +0000 (10:52 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Aug 2020 17:52:37 +0000 (10:52 -0700)
commitffa06471f6e5fac939533c7541ad31321089cf0a
tree86af3ce1fd3e5ca46ac20f7b52c3e1e8a6f7c46a
parent4b593940ee884ad4c1dd0712ced488e3127be4c6
[JsonSerializer] Prevent arbitrary properties from being cached when deserializing with parameterized ctors (#40495)

* [JsonSerializer] Prevent arbitrary properties from being cached when deserializing with parameterized ctors

* Address review feedback

* Correct check on when to grow property pool in sync code paths
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectWithParameterizedConstructorConverter.cs
src/libraries/System.Text.Json/tests/Serialization/ConstructorTests/ConstructorTests.ParameterMatching.cs