Honor custom number handling only when property/type is a number/collection of number...
authorLayomi Akinrinade <laakinri@microsoft.com>
Tue, 8 Sep 2020 15:39:46 +0000 (08:39 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 15:39:46 +0000 (08:39 -0700)
commit149b235d6792be337ac6d9151a9f8ee9844c3e2f
tree3613df0168826787bf57ccffe9c0e3f8edbab8ae
parent1e4d0a618d375e10cdb663a07445030067ba66ae
Honor custom number handling only when property/type is a number/collection of numbers (#41679)

* Honor custom number handling only when property/type is a number/collection of numbers

* Verify typeof(object) + custom number handling behavior

* Simplify setting of per-property number handling

* Clean up number-handling-applicable check

* Fix issue with number-handling + boxed non-number types
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/ObjectConverter.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfo.cs
src/libraries/System.Text.Json/tests/Serialization/NumberHandlingTests.cs