Guard against deserializing types with open generics (#34163)
authorLayomi Akinrinade <laakinri@microsoft.com>
Tue, 31 Mar 2020 17:11:35 +0000 (13:11 -0400)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 17:11:35 +0000 (10:11 -0700)
commitf973e96996ac859d2f4799d9aaa986214d4ba7f3
tree0dc3df426bcd277e857b1c53f1422fba08f96733
parent85bf770e1e7e9df42e448a73df8fdf21964b0fd9
Guard against deserializing types with open generics (#34163)

* Guard against deserializing types with open generics

* Include serialization tests

* Address review feedback

* Address review feedback
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.Serialization.cs
src/libraries/System.Text.Json/tests/Serialization/OpenGenericTests.cs [new file with mode: 0644]
src/libraries/System.Text.Json/tests/Serialization/ReadValueTests.cs
src/libraries/System.Text.Json/tests/Serialization/SerializationWrapper.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj