-Changed serializer to fallback to use a private default constructor
-Changed error message when deserializing a JSON object/array onto the wrong kind of type to be more descriptive
This commit is contained in:
@@ -33,5 +33,15 @@ namespace Newtonsoft.Json.Tests.TestObjects
|
||||
private PrivateConstructorTestClass()
|
||||
{
|
||||
}
|
||||
|
||||
// multiple constructors with arguments so the serializer doesn't know what to fall back to
|
||||
private PrivateConstructorTestClass(object a)
|
||||
{
|
||||
}
|
||||
|
||||
// multiple constructors with arguments so the serializer doesn't know what to fall back to
|
||||
private PrivateConstructorTestClass(object a, object b)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user