[release/8.0-rc1] Fix support for non-public default constructors using JsonIncludeAt...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 16 Aug 2023 14:38:41 +0000 (07:38 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 14:38:41 +0000 (07:38 -0700)
commitd29067bc3bc614ed08a5e6cd94baff0481f435e6
tree0dcec93029b1ce42d9ca69c204b7b0f995cd4413
parentb1225e7c0902f82362afc9cc21b632462a9339b4
[release/8.0-rc1] Fix support for non-public default constructors using JsonIncludeAttribute (#90615)

* Fix support for non-public constructors using JsonIncludeAttribute

* Address feedback.

---------

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
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/MemberAccessor.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionEmitCachingMemberAccessor.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionEmitMemberAccessor.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionMemberAccessor.cs
src/libraries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.AttributePresence.cs
src/libraries/System.Text.Json/tests/Common/TestClasses/TestClasses.Constructor.cs
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/Serialization/ConstructorTests.cs