1 write to UnderlyingOrModelType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
753UnderlyingOrModelType = Nullable.GetUnderlyingType(ModelType) ?? ModelType;
26 references to UnderlyingOrModelType
Microsoft.AspNetCore.Mvc.Abstractions (6)
ModelBinding\ModelMetadata.cs (6)
264/// <see cref="UnderlyingOrModelType"/>. 273/// Gets the names and values of all <see cref="Enum"/> values in <see cref="UnderlyingOrModelType"/>. 327/// Gets a value indicating whether <see cref="UnderlyingOrModelType"/> is for an <see cref="Enum"/>. 331/// <see cref="UnderlyingOrModelType"/>; <c>false</c> otherwise. 336/// Gets a value indicating whether <see cref="UnderlyingOrModelType"/> is for an <see cref="Enum"/> with an 340/// <c>true</c> if <see cref="IsEnum"/> is <c>true</c> and <see cref="UnderlyingOrModelType"/> has an
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
199Assert.Equal(expected, modelMetadata.UnderlyingOrModelType);
Microsoft.AspNetCore.Mvc.Core (12)
ModelBinding\Binders\DateTimeModelBinder.cs (1)
54var type = metadata.UnderlyingOrModelType;
ModelBinding\Binders\DateTimeModelBinderProvider.cs (1)
24var modelType = context.Metadata.UnderlyingOrModelType;
ModelBinding\Binders\DecimalModelBinder.cs (1)
56var type = metadata.UnderlyingOrModelType;
ModelBinding\Binders\DoubleModelBinder.cs (1)
56var type = metadata.UnderlyingOrModelType;
ModelBinding\Binders\EnumTypeModelBinder.cs (1)
60var modelType = bindingContext.ModelMetadata.UnderlyingOrModelType;
ModelBinding\Binders\EnumTypeModelBinderProvider.cs (1)
35context.Metadata.UnderlyingOrModelType,
ModelBinding\Binders\FloatingPointTypeModelBinderProvider.cs (1)
27var modelType = context.Metadata.UnderlyingOrModelType;
ModelBinding\Binders\FloatModelBinder.cs (1)
56var type = metadata.UnderlyingOrModelType;
ModelBinding\Metadata\DisplayMetadata.cs (4)
142/// <see cref="ModelMetadata.UnderlyingOrModelType"/>. See 149/// <see cref="ModelMetadata.UnderlyingOrModelType"/>. See <see cref="ModelMetadata.EnumNamesAndValues"/>. 173/// Gets a value indicating whether <see cref="ModelMetadata.UnderlyingOrModelType"/> is for an 180/// Gets a value indicating whether <see cref="ModelMetadata.UnderlyingOrModelType"/> is for an
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
NumericClientModelValidatorProvider.cs (1)
19var typeToValidate = context.ModelMetadata.UnderlyingOrModelType;
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (4)
490(typeof(DateTime) == modelExplorer.Metadata.UnderlyingOrModelType || 491typeof(DateTimeOffset) == modelExplorer.Metadata.UnderlyingOrModelType || 492typeof(DateOnly) == modelExplorer.Metadata.UnderlyingOrModelType)) 541fieldType = modelExplorer.Metadata.UnderlyingOrModelType;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (1)
968var innerType = metadata.UnderlyingOrModelType;
TemplateRenderer.cs (1)
162var fieldType = metadata.UnderlyingOrModelType;