Fix deserializing via constructor with ignored base type properties (#2711)
This commit is contained in:
@@ -2244,6 +2244,13 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!reader.Read())
|
||||
{
|
||||
throw JsonSerializationException.Create(reader, "Unexpected end when setting {0}'s value.".FormatWith(CultureInfo.InvariantCulture, memberName));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user