4 references to TypeAllowsNullValue
System.Web (4)
ModelBinding\ModelMetadata.cs (1)
41
_isRequired = !TypeHelpers.
TypeAllowsNullValue
(modelType);
ModelBinding\MutableObjectModelBinder.cs (1)
207
if (value != null || TypeHelpers.
TypeAllowsNullValue
(propertyDescriptor.PropertyType)) {
ModelBinding\TypeHelpers.cs (1)
22
return ((value == null &&
TypeAllowsNullValue
(type)) || type.IsInstanceOfType(value));
UI\WebControls\ModelDataSourceView.cs (1)
1249
if (value == null && !TypeHelpers.
TypeAllowsNullValue
(parameterInfo.ParameterType)) {