C# Class ExoModel.DynamicModelTypeProvider

Base class for type providers that expose properties dynamically but leverage base type providers for core functionality.
Inheritance: IModelTypeProvider
ファイルを表示 Open project: vc3/ExoModel

Protected Methods

Method Description
CreateModelType ( string typeName, IModelTypeProvider provider = null ) : ModelType

Creates a ModelType that corresponds to the specified type name.

GetModelTypeName ( object instance ) : string

Gets the unique name of the ModelType for the specified model object instance.

Private Methods

Method Description
DynamicModelTypeProvider ( string @namespace, string baseType, bool isCacheable ) : System

Creates a new DynamicModelTypeProvider based on the specified types.

IModelTypeProvider ( string typeName ) : ModelType

Creates a ModelType that corresponds to the specified type name.

IModelTypeProvider ( Type type ) : string

Gets the ModelType that corresponds to the specified Type.

IModelTypeProvider ( object instance ) : string

Gets the unique name of the ModelType for the specified model object instance.

Method Details

CreateModelType() protected abstract method

Creates a ModelType that corresponds to the specified type name.
protected abstract CreateModelType ( string typeName, IModelTypeProvider provider = null ) : ModelType
typeName string
provider IModelTypeProvider
return ModelType

GetModelTypeName() protected abstract method

Gets the unique name of the ModelType for the specified model object instance.
protected abstract GetModelTypeName ( object instance ) : string
instance object The actual model object instance
return string