5 instantiations of ModelAttributes
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\Metadata\ModelAttributes.cs (5)
16internal static readonly ModelAttributes Empty = new ModelAttributes(Array.Empty<object>()); 147return new ModelAttributes(typeAttributes, propertyAttributes, parameterAttributes: null); 168return new ModelAttributes(attributes, propertyAttributes: null, parameterAttributes: null); 188return new ModelAttributes(typeAttributes, propertyAttributes: null, parameterAttributes); 212return new ModelAttributes(typeAttributes, propertyAttributes: null, parameterAttributes);
24 references to ModelAttributes
Microsoft.AspNetCore.Mvc.Core (24)
ModelBinding\Metadata\BindingMetadataProviderContext.cs (1)
20ModelAttributes attributes)
ModelBinding\Metadata\DefaultMetadataDetails.cs (2)
21public DefaultMetadataDetails(ModelMetadataIdentity key, ModelAttributes attributes) 32public ModelAttributes ModelAttributes { get; }
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
79public ModelAttributes Attributes => _details.ModelAttributes;
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (5)
247var constructorDetails = new DefaultMetadataDetails(constructorKey, ModelAttributes.Empty); 361var attributes = ModelAttributes.GetAttributesForProperty( 399ModelAttributes.GetAttributesForType(key.ModelType)); 413ModelAttributes.GetAttributesForParameter(key.ParameterInfo!, key.ModelType));
ModelBinding\Metadata\DisplayMetadataProviderContext.cs (1)
20ModelAttributes attributes)
ModelBinding\Metadata\ModelAttributes.cs (13)
16internal static readonly ModelAttributes Empty = new ModelAttributes(Array.Empty<object>()); 19/// Creates a new <see cref="ModelAttributes"/>. 27/// Creates a new <see cref="ModelAttributes"/>. 111/// A <see cref="ModelAttributes"/> instance with the attributes of the property and its <see cref="Type"/>. 113public static ModelAttributes GetAttributesForProperty(Type type, PropertyInfo property) 127/// A <see cref="ModelAttributes"/> instance with the attributes of the property and its <see cref="Type"/>. 129public static ModelAttributes GetAttributesForProperty(Type containerType, PropertyInfo property, Type modelType) 155/// <returns>A <see cref="ModelAttributes"/> instance with the attributes of the <see cref="Type"/>.</returns> 156public static ModelAttributes GetAttributesForType(Type type) 178/// A <see cref="ModelAttributes"/> instance with the attributes of the parameter and its <see cref="Type"/>. 180public static ModelAttributes GetAttributesForParameter(ParameterInfo parameterInfo) 199/// A <see cref="ModelAttributes"/> instance with the attributes of the parameter and its <see cref="Type"/>. 201public static ModelAttributes GetAttributesForParameter(ParameterInfo parameterInfo, Type modelType)
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (1)
20ModelAttributes attributes)