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