Throw NotSupportedException when applying JsonObjectHandling.Populate on types with...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 4 Oct 2023 01:37:55 +0000 (18:37 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2023 01:37:55 +0000 (18:37 -0700)
commit1954c378cef9d701156b45423494fd4936803e2a
treef205782ff99a3f643a8685061c82eb8ed6002509
parenta84f8ffbf5d597b8a91e893a1f413466de017a68
Throw NotSupportedException when applying JsonObjectHandling.Populate on types with parameterized constructors. (#92947)

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectWithParameterizedConstructorConverter.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/DefaultJsonTypeInfoResolver.Helpers.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonPropertyInfo.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReadStack.cs
src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.Serialization.cs
src/libraries/System.Text.Json/tests/Common/JsonCreationHandlingTests.Object.cs
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/Serialization/JsonCreationHandlingTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/MetadataTests/DefaultJsonTypeInfoResolverTests.JsonTypeInfo.cs