-Fixed deserializing generic only IList types with a constructor override

This commit is contained in:
James Newton-King
2016-11-05 23:21:34 +13:00
parent 989d980be6
commit 803403ae21
2 changed files with 114 additions and 1 deletions
@@ -1176,8 +1176,15 @@ namespace Newtonsoft.Json.Serialization
}
else
{
object list = contract.OverrideCreator();
if (contract.ShouldCreateWrapper)
{
list = contract.CreateWrapper(list);
}
createdFromNonDefaultCreator = false;
return (IList)contract.OverrideCreator();
return (IList)list;
}
}
else if (contract.IsReadOnlyOrFixedSize)