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