1 write to IsReferenceOrNullableType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
752
IsReferenceOrNullableType
= !ModelType.IsValueType || IsNullableValueType;
11 references to IsReferenceOrNullableType
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
180
Assert.Equal(expected, modelMetadata.
IsReferenceOrNullableType
);
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Binders\DateTimeModelBinder.cs (1)
77
if (model == null && !metadata.
IsReferenceOrNullableType
)
ModelBinding\Binders\DecimalModelBinder.cs (1)
80
if (model == null && !metadata.
IsReferenceOrNullableType
)
ModelBinding\Binders\DoubleModelBinder.cs (1)
80
if (model == null && !metadata.
IsReferenceOrNullableType
)
ModelBinding\Binders\FloatModelBinder.cs (1)
80
if (model == null && !metadata.
IsReferenceOrNullableType
)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
120
if (model == null && !bindingContext.ModelMetadata.
IsReferenceOrNullableType
)
ModelBinding\Binders\TryParseModelBinder.cs (1)
71
if (!bindingContext.ModelMetadata.
IsReferenceOrNullableType
)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
327
_isRequired = !
IsReferenceOrNullableType
;
ModelBinding\PropertyValueSetter.cs (1)
23
if (value != null || metadata.
IsReferenceOrNullableType
)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewDataDictionary.cs (2)
464
!ModelMetadata.
IsReferenceOrNullableType
&&
512
return ModelMetadata.
IsReferenceOrNullableType
;