1 write to IsNullableValueType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
751
IsNullableValueType
= Nullable.GetUnderlyingType(ModelType) != null;
9 references to IsNullableValueType
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\BindingInfo.cs (1)
262
(modelMetadata.NullabilityState == NullabilityState.Nullable || modelMetadata.
IsNullableValueType
|| modelMetadata.HasDefaultValue))
ModelBinding\ModelMetadata.cs (2)
538
/// Identical to <see cref="ModelType"/> unless <see cref="
IsNullableValueType
"/> is <c>true</c>.
752
IsReferenceOrNullableType = !ModelType.IsValueType ||
IsNullableValueType
;
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
190
return metadata.NullabilityState == NullabilityState.Nullable || metadata.
IsNullableValueType
;
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultDisplayTemplates.cs (2)
26
return htmlHelper.ViewData.ModelMetadata.
IsNullableValueType
?
90
var typeInCollectionIsNullableValueType = elementMetadata.
IsNullableValueType
;
DefaultEditorTemplates.cs (2)
32
return htmlHelper.ViewData.ModelMetadata.
IsNullableValueType
?
73
var typeInCollectionIsNullableValueType = elementMetadata.
IsNullableValueType
;
ModelExplorer.cs (1)
146
if (Metadata.
IsNullableValueType
)