-Fixed error when populating onto read only collections
-Fixed serializing hidden properties -Readded DataContractAttribute inheritance
This commit is contained in:
@@ -100,6 +100,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
if (CollectionItemType != null)
|
||||
ParametrizedConstructor = CollectionUtils.ResolveEnumableCollectionConstructor(underlyingType, CollectionItemType);
|
||||
|
||||
IsReadOnlyOrFixedSize = ReflectionUtils.InheritsGenericDefinition(underlyingType, typeof(ReadOnlyCollection<>));
|
||||
canDeserialize = true;
|
||||
}
|
||||
else if (ReflectionUtils.ImplementsGenericDefinition(underlyingType, typeof(ICollection<>), out _genericCollectionDefinitionType))
|
||||
|
||||
Reference in New Issue
Block a user