10 references to TypeHelpers
System.Web (10)
ModelBinding\CollectionModelBinderUtil.cs (1)
110
Type closedCollectionType =
TypeHelpers
.ExtractGenericInterface(closedSupportedInterfaceType, typeof(ICollection<>));
ModelBinding\GenericModelBinderProvider.cs (2)
76
Type matchingClosedInterface =
TypeHelpers
.ExtractGenericInterface(bindingContext.ModelType, ModelType);
82
typeArguments =
TypeHelpers
.GetTypeArgumentsIfMatch(bindingContext.ModelType, ModelType);
ModelBinding\ModelBinderUtil.cs (1)
34
Type[] typeArguments =
TypeHelpers
.GetTypeArgumentsIfMatch(closedModelType, openModelType);
ModelBinding\ModelMetadata.cs (3)
41
_isRequired = !
TypeHelpers
.TypeAllowsNullValue(modelType);
107
return
TypeHelpers
.IsNullableValueType(ModelType);
188
if (Model != null && !
TypeHelpers
.IsNullableValueType(ModelType)) {
ModelBinding\MutableObjectModelBinder.cs (1)
207
if (value != null ||
TypeHelpers
.TypeAllowsNullValue(propertyDescriptor.PropertyType)) {
ModelBinding\TypeMatchModelBinder.cs (1)
27
if (!
TypeHelpers
.IsCompatibleObject(bindingContext.ModelType, vpResult.RawValue)) {
UI\WebControls\ModelDataSourceView.cs (1)
1249
if (value == null && !
TypeHelpers
.TypeAllowsNullValue(parameterInfo.ParameterType)) {