Fix deserializing via constructor with ignored base type properties (#2711)

This commit is contained in:
James Newton-King
2022-08-04 15:02:55 +08:00
committed by GitHub
parent 94ff24f815
commit cb9eed9666
2 changed files with 88 additions and 0 deletions
@@ -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
{