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