Permalink
Browse files

Fix collection adapter should not handle byte[]

  • Loading branch information...
lanwin committed Jun 29, 2010
1 parent 14df5eb commit 1b5579466183670f5fbbb5a9bcb6a68351d9a620
@@ -69,7 +69,7 @@ public ICollectionAdapter GetCollectionAdapter(Type type)
if (CollectionTypes.TryGetValue(type, out factory))
return factory();
- if (type.IsArray)
+ if(type.IsArray && type != typeof(byte[]))
{
return new ArrayCollectionAdapter();
}

0 comments on commit 1b55794

Please sign in to comment.