-Fix deserializing nullable array

This commit is contained in:
JamesNK
2010-03-27 07:17:11 +00:00
parent b0c6db675e
commit 0f148a9788
2 changed files with 21 additions and 1 deletions
@@ -70,7 +70,8 @@ namespace Newtonsoft.Json.Serialization
internal IWrappedCollection CreateWrapper(object list)
{
if (list is IList && (CollectionItemType == null || !_isCollectionItemTypeNullableType))
if ((list is IList && (CollectionItemType == null || !_isCollectionItemTypeNullableType))
|| UnderlyingType.IsArray)
return new CollectionWrapper<object>((IList)list);
if (_genericWrapperType == null)