-Fixed using MetadataTypeAttribute with proxies

-Fixed error when deserializing undeserializable collections
This commit is contained in:
James Newton-King
2015-01-11 14:32:52 +13:00
parent a2e15adf80
commit 9a4f96aa8f
4 changed files with 262 additions and 9 deletions
@@ -814,6 +814,13 @@ namespace Newtonsoft.Json.Serialization
}
else
{
// can't populate something like an IEnumerable
if (!arrayContract.CanDeserialize)
{
reader.Skip();
return existingValue;
}
value = PopulateList((arrayContract.ShouldCreateWrapper) ? arrayContract.CreateWrapper(existingValue) : (IList)existingValue, reader, arrayContract, member, id);
}