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