18 references to ModelType
System.Web (18)
ModelBinding\ArrayModelBinderProvider.cs (2)
9if (!bindingContext.ModelMetadata.IsReadOnly && bindingContext.ModelType.IsArray && 11Type elementType = bindingContext.ModelType.GetElementType();
ModelBinding\GenericModelBinderProvider.cs (2)
76Type matchingClosedInterface = TypeHelpers.ExtractGenericInterface(bindingContext.ModelType, ModelType); 82typeArguments = TypeHelpers.GetTypeArgumentsIfMatch(bindingContext.ModelType, ModelType);
ModelBinding\KeyValuePairModelBinderProvider.cs (1)
13return ModelBinderUtil.GetPossibleBinderInstance(bindingContext.ModelType, typeof(KeyValuePair<,>) /* supported model type */, typeof(KeyValuePairModelBinder<,>) /* binder type */);
ModelBinding\ModelBinderProviderCollection.cs (2)
26if (TryGetProviderFromAttributes(bindingContext.ModelType, out providerFromAttr)) { 39throw Error.ModelBinderProviderCollection_BinderForTypeNotFound(bindingContext.ModelType);
ModelBinding\ModelBinderUtil.cs (2)
95if (bindingContext.ModelType != requiredType) { 96throw Error.ModelBinderUtil_ModelTypeIsWrong(bindingContext.ModelType, requiredType);
ModelBinding\MutableObjectModelBinder.cs (4)
87return SecurityUtils.SecureCreateInstance(bindingContext.ModelType); 116GetRequiredPropertiesCollection(bindingContext.ModelType, out requiredProperties, out skipProperties); 159GetRequiredPropertiesCollection(bindingContext.ModelType, out requiredProperties, out skipProperties); 184PropertyDescriptor propertyDescriptor = TypeDescriptorHelper.Get(bindingContext.ModelType).GetProperties().Find(propertyMetadata.PropertyName, true /* ignoreCase */);
ModelBinding\MutableObjectModelBinderProvider.cs (1)
13if (bindingContext.ModelType == typeof(ComplexModel)) {
ModelBinding\SimpleModelBinderProvider.cs (1)
48if (bindingContext.ModelType == ModelType) {
ModelBinding\TypeConverterModelBinder.cs (1)
20newModel = vpResult.ConvertTo(bindingContext.ModelType);
ModelBinding\TypeConverterModelBinderProvider.cs (1)
15if (!TypeDescriptor.GetConverter(bindingContext.ModelType).CanConvertFrom(typeof(string))) {
ModelBinding\TypeMatchModelBinder.cs (1)
27if (!TypeHelpers.IsCompatibleObject(bindingContext.ModelType, vpResult.RawValue)) {