Update JsonSerializerOptions.AddContext to have combine semantics. (#80698)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Tue, 17 Jan 2023 14:53:07 +0000 (14:53 +0000)
committerGitHub <noreply@github.com>
Tue, 17 Jan 2023 14:53:07 +0000 (14:53 +0000)
commit9a6686be5dde9171ea9a827e700dae3770af1e06
treed817c9d3d0f3607571f1d9ab1344ae0e2f0886df
parente9b9489f41cface8f537f87ab1e187c9244c5ea9
Update JsonSerializerOptions.AddContext to have combine semantics. (#80698)

* Update JsonSerializerOptions.AddContext to have combine semantics.

* Remove unused property setter.

* Remove unused error message.

* Update XML documentation.
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerContext.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfoResolver.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/MetadataTests/JsonTypeInfoResolverTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/MetadataTests/MetadataTests.Options.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/OptionsTests.cs