1 write to ModelType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Metadata\ModelMetadataIdentity.cs (1)
20ModelType = modelType;
19 references to ModelType
Microsoft.AspNetCore.Mvc.Abstractions (4)
ModelBinding\Metadata\ModelMetadataIdentity.cs (3)
184ModelType == other.ModelType && 203hash.Add(ModelType);
ModelBinding\ModelMetadata.cs (1)
91public Type ModelType => Identity.ModelType;
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Metadata\BindingSourceMetadataProvider.cs (1)
47if (Type.IsAssignableFrom(context.Key.ModelType))
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
74if (GetBoundConstructor(context.Key.ModelType) is ConstructorInfo constructorInfo)
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (5)
335var propertyHelpers = PropertyHelper.GetVisibleProperties(key.ModelType); 345key.ModelType); 364propertyKey.ModelType); 399ModelAttributes.GetAttributesForType(key.ModelType)); 413ModelAttributes.GetAttributesForParameter(key.ParameterInfo!, key.ModelType));
ModelBinding\Metadata\ExcludeBindingMetadataProvider.cs (1)
36if (!_type.IsAssignableFrom(context.Key.ModelType))
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
37if (provider.HasValidators(context.Key.ModelType, context.ValidationMetadata.ValidatorMetadata))
ModelBinding\SuppressChildValidationMetadataProvider.cs (2)
62if (Type.IsAssignableFrom(context.Key.ModelType)) 72if (IsMatchingName(context.Key.ModelType))
Microsoft.AspNetCore.Mvc.DataAnnotations (4)
DataAnnotationsMetadataProvider.cs (4)
96var containerType = context.Key.ContainerType ?? context.Key.ModelType; 159var underlyingType = Nullable.GetUnderlyingType(context.Key.ModelType) ?? context.Key.ModelType; 329!context.Key.ModelType.IsValueType &&