4 overrides of IsReadOnly
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcModelMetadata.cs (1)
38public override bool IsReadOnly { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
628public override bool IsReadOnly
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
38public override bool IsReadOnly { get; }
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
289public override bool IsReadOnly
12 references to IsReadOnly
Microsoft.AspNetCore.Mvc.Core (7)
ModelBinding\Binders\ComplexObjectModelBinder.cs (2)
424if (propertyMetadata.MetadataKind == ModelMetadataKind.Property && propertyMetadata.IsReadOnly) 696if (propertyMetadata.IsReadOnly)
ModelBinding\Binders\ComplexTypeModelBinder.cs (2)
425return !propertyMetadata.IsReadOnly || CanUpdateReadOnlyProperty(propertyMetadata.ModelType); 534if (propertyMetadata.IsReadOnly)
ModelBinding\Metadata\BindingMetadata.cs (2)
75/// <see cref="ModelMetadata.IsReadOnly"/> will be computed based on the accessibility 76/// of the property accessor and model <see cref="Type"/>. See <see cref="ModelMetadata.IsReadOnly"/>.
ModelBinding\PropertyValueSetter.cs (1)
20if (!metadata.IsReadOnly)
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (3)
763var isReadOnly = metadata.Properties["PublicGetPrivateSetProperty"].IsReadOnly; 782var isReadOnly = metadata.Properties["PublicGetProtectedSetProperty"].IsReadOnly; 801var isReadOnly = metadata.Properties["PublicGetPublicSetProperty"].IsReadOnly;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ModelMetadataProviderTest.cs (2)
306metadata => metadata.IsReadOnly, 311metadata => metadata.IsReadOnly,