C# Класс MvcContrib.Binders.DerivedTypeModelBinder

This model binder extends the default model binder to detect alternate runtime types on a page and allow the binder adapt to derived types.
Наследование: System.Web.Mvc.DefaultModelBinder, IPropertyNameProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreatePropertyName ( string prefix, string propertyName ) : string
DerivedTypeModelBinder ( ) : System
DerivedTypeModelBinder ( ITypeStampOperator typeStampOperator ) : System

Защищенные методы

Метод Описание
CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type modelType ) : object

An override of CreateModel that focuses on detecting alternate types at runtime

DetectInstantiationType ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type typeToCreate ) : Type

Описание методов

CreateModel() защищенный Метод

An override of CreateModel that focuses on detecting alternate types at runtime
protected CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type modelType ) : object
controllerContext System.Web.Mvc.ControllerContext the controller context
bindingContext System.Web.Mvc.ModelBindingContext the binding context
modelType System.Type the target type to be instantiated by this method and rehydrated by /// the default model binder
Результат object

CreatePropertyName() публичный Метод

public CreatePropertyName ( string prefix, string propertyName ) : string
prefix string
propertyName string
Результат string

DerivedTypeModelBinder() публичный Метод

public DerivedTypeModelBinder ( ) : System
Результат System

DerivedTypeModelBinder() публичный Метод

public DerivedTypeModelBinder ( ITypeStampOperator typeStampOperator ) : System
typeStampOperator ITypeStampOperator
Результат System

DetectInstantiationType() защищенный Метод

protected DetectInstantiationType ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type typeToCreate ) : Type
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
typeToCreate System.Type
Результат System.Type