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