Guard against (de)serializing SerializationInfo instances (#42605)
authorLayomi Akinrinade <laakinri@microsoft.com>
Thu, 24 Sep 2020 16:24:01 +0000 (09:24 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 16:24:01 +0000 (09:24 -0700)
commitdbbce4320af818c07c9574c086cf7053379f6c94
treeed73f3eb9209538dc05cdd4b65b55ba4625dc271
parent711596560ea59c8bb9dfbf44e726e02b0d7197ca
Guard against (de)serializing SerializationInfo instances (#42605)

* Guard against (de)serializing SerializationInfo instances

* Address feedback
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System.Text.Json.csproj
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/DisallowedTypeConverter.cs [new file with mode: 0644]
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/DisallowedTypeConverterFactory.cs [new file with mode: 0644]
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/TypeConverter.cs [deleted file]
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs
src/libraries/System.Text.Json/tests/Serialization/ExceptionTests.cs
src/libraries/System.Text.Json/tests/Serialization/TestClasses/TestClasses.cs