-Added support for immutable collections to Portable .NET 4.0 build

This commit is contained in:
James Newton-King
2015-09-30 18:04:18 +13:00
parent eccdf4bf95
commit 239cde86f0
4 changed files with 4 additions and 3 deletions
@@ -212,7 +212,7 @@ namespace Newtonsoft.Json.Serialization
}
#endif
#if !(NET20 || NET35 || NET40 || PORTABLE40)
#if !(NET20 || NET35 || NET40)
Type immutableCreatedType;
ObjectConstructor<object> immutableParameterizedCreator;
if (ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(underlyingType, CollectionItemType, out immutableCreatedType, out immutableParameterizedCreator))