32 references to ModelBinderUtil
System.Web (32)
ModelBinding\ArrayModelBinderProvider.cs (1)
7ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\BinaryDataModelBinderProvider.cs (1)
28ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\CollectionModelBinder`1.cs (6)
10string indexPropertyName = ModelBinderUtil.CreatePropertyModelName(bindingContext.ModelName, "index"); 28string fullChildName = ModelBinderUtil.CreateIndexModelName(bindingContext.ModelName, indexName); 51boundCollection.Add(ModelBinderUtil.CastOrDefault<TElement>(boundValue)); 58ModelBinderUtil.ValidateBindingContext(bindingContext); 78object[] rawValueArray = ModelBinderUtil.RawValueToObjectArray(rawValue); 97boundCollection.Add(ModelBinderUtil.CastOrDefault<TElement>(boundValue));
ModelBinding\CollectionModelBinderProvider.cs (1)
7ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\ComplexModelBinder.cs (2)
6ModelBinderUtil.ValidateBindingContext(bindingContext, typeof(ComplexModel), false /* allowNullModel */); 12ModelName = ModelBinderUtil.CreatePropertyModelName(bindingContext.ModelName, propertyMetadata.PropertyName)
ModelBinding\DictionaryModelBinderProvider.cs (1)
7ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\GenericModelBinderProvider.cs (1)
72ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\KeyValuePairModelBinder`2.cs (1)
21ModelBinderUtil.ValidateBindingContext(bindingContext, typeof(KeyValuePair<TKey, TValue>), true /* allowNullModel */);
ModelBinding\KeyValuePairModelBinderProvider.cs (4)
7ModelBinderUtil.ValidateBindingContext(bindingContext); 9string keyFieldName = ModelBinderUtil.CreatePropertyModelName(bindingContext.ModelName, "key"); 10string valueFieldName = ModelBinderUtil.CreatePropertyModelName(bindingContext.ModelName, "value"); 13return ModelBinderUtil.GetPossibleBinderInstance(bindingContext.ModelType, typeof(KeyValuePair<,>) /* supported model type */, typeof(KeyValuePairModelBinder<,>) /* binder type */);
ModelBinding\KeyValuePairModelBinderUtil.cs (2)
8ModelName = ModelBinderUtil.CreatePropertyModelName(parentBindingContext.ModelName, propertyName) 15model = ModelBinderUtil.CastOrDefault<TModel>(untypedModel);
ModelBinding\ModelValidationNode.cs (3)
145string propertyKeyRoot = ModelBinderUtil.CreatePropertyModelName(ModelStateKey, propertyMetadata.PropertyName); 150string thisErrorKey = ModelBinderUtil.CreatePropertyModelName(propertyKeyRoot, propertyResult.MemberName); 167string trueModelStateKey = ModelBinderUtil.CreatePropertyModelName(ModelStateKey, validationResult.MemberName);
ModelBinding\MutableObjectModelBinder.cs (2)
29ModelBinderUtil.ValidateBindingContext(bindingContext); 166string fullPropertyKey = ModelBinderUtil.CreatePropertyModelName(bindingContext.ModelName, missingPropertyName);
ModelBinding\MutableObjectModelBinderProvider.cs (1)
6ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\SimpleModelBinderProvider.cs (1)
46ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\TypeConverterModelBinder.cs (2)
10ModelBinderUtil.ValidateBindingContext(bindingContext); 36ModelBinderUtil.ReplaceEmptyStringWithNull(bindingContext.ModelMetadata, ref newModel);
ModelBinding\TypeConverterModelBinderProvider.cs (1)
8ModelBinderUtil.ValidateBindingContext(bindingContext);
ModelBinding\TypeMatchModelBinder.cs (2)
13ModelBinderUtil.ReplaceEmptyStringWithNull(bindingContext.ModelMetadata, ref model); 20ModelBinderUtil.ValidateBindingContext(bindingContext);