2 writes to IsReadOnly
System.Web (2)
ModelBinding\DataAnnotationsModelMetadataProvider.cs (2)
40
result.
IsReadOnly
= !editable.AllowEdit;
45
result.
IsReadOnly
= readOnlyAttribute.IsReadOnly;
3 references to IsReadOnly
System.Web (3)
ModelBinding\ArrayModelBinderProvider.cs (1)
9
if (!bindingContext.ModelMetadata.
IsReadOnly
&& bindingContext.ModelType.IsArray &&
ModelBinding\CollectionModelBinderUtil.cs (1)
93
if (!modelMetadata.
IsReadOnly
) {
ModelBinding\MutableObjectModelBinder.cs (1)
46
return (!propertyMetadata.
IsReadOnly
|| CanUpdateReadOnlyProperty(propertyMetadata.ModelType));