1 instantiation of ComplexModel
System.Web (1)
ModelBinding\MutableObjectModelBinder.cs (1)
73
ComplexModel originalComplexModel = new
ComplexModel
(bindingContext.ModelMetadata, propertyMetadatas);
11 references to ComplexModel
System.Web (11)
ModelBinding\ComplexModelBinder.cs (3)
6
ModelBinderUtil.ValidateBindingContext(bindingContext, typeof(
ComplexModel
), false /* allowNullModel */);
8
ComplexModel
complexModel = (
ComplexModel
)bindingContext.Model;
ModelBinding\ComplexModelBinderProvider.cs (1)
14
return new SimpleModelBinderProvider(typeof(
ComplexModel
), new ComplexModelBinder()) {
ModelBinding\MutableObjectModelBinder.cs (6)
33
ComplexModel
complexModel = CreateAndPopulateComplexModel(modelBindingExecutionContext, bindingContext, propertyMetadatas);
71
private
ComplexModel
CreateAndPopulateComplexModel(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext, IEnumerable<ModelMetadata> propertyMetadatas) {
73
ComplexModel
originalComplexModel = new ComplexModel(bindingContext.ModelMetadata, propertyMetadatas);
75
ModelMetadata = MetadataProvider.GetMetadataForType(() => originalComplexModel, typeof(
ComplexModel
)),
81
return (
ComplexModel
)complexModelBindingContext.Model;
156
internal void ProcessComplexModel(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext,
ComplexModel
complexModel) {
ModelBinding\MutableObjectModelBinderProvider.cs (1)
13
if (bindingContext.ModelType == typeof(
ComplexModel
)) {