-Fixed serializing immutable collections when .NET 4.0 or previous Newtonsoft.Json assembly is GACed

This commit is contained in:
James Newton-King
2017-08-10 19:15:06 +12:00
parent 725e808db9
commit 72b98ae7b2
4 changed files with 14 additions and 14 deletions
@@ -254,7 +254,6 @@ namespace Newtonsoft.Json.Serialization
}
#endif
#if HAVE_IMMUTABLE_COLLECTIONS
Type immutableCreatedType;
ObjectConstructor<object> immutableParameterizedCreator;
if (ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(underlyingType, CollectionItemType, out immutableCreatedType, out immutableParameterizedCreator))
@@ -264,7 +263,6 @@ namespace Newtonsoft.Json.Serialization
IsReadOnlyOrFixedSize = true;
CanDeserialize = true;
}
#endif
}
internal IWrappedCollection CreateWrapper(object list)