C# 클래스 ModelBuilder.DefaultExecuteStrategy

The DefaultExecuteStrategy{T} class is used to create types and populate instances.
상속: IExecuteStrategy
파일 보기 프로젝트 열기: roryprimrose/ModelBuilder

공개 메소드들

메소드 설명
CreateWith ( Type type ) : object
Initialize ( IBuildConfiguration configuration, IBuildLog buildLog ) : void
Populate ( object instance ) : object

보호된 메소드들

메소드 설명
Build ( Type type, string referenceName, object context ) : object

Builds an instance of the specified type.

PopulateInstance ( object instance ) : object

Populates the settable properties on the specified instance.

비공개 메소드들

메소드 설명
BuildFailureException ( Type type, string referenceName, object context ) : Exception
CreateAndPopulate ( Type type, string referenceName, LinkedList buildChain, object args, ITypeCreator typeCreator ) : object
CreateInstance ( ITypeCreator typeCreator, Type type, string referenceName, LinkedList buildChain, object args ) : object
EnsureInitialized ( ) : void
GetMaximumOrderPrority ( Type type, string propertyName ) : int
PopulateProperty ( object instance, PropertyInfo propertyInfo ) : void

메소드 상세

Build() 보호된 메소드

Builds an instance of the specified type.
The parameter is null. The parameter can not be created using this strategy.
protected Build ( Type type, string referenceName, object context ) : object
type System.Type The type of instance to create.
referenceName string Identifies the possible parameter or property name this value is intended for.
context object The possible context object this value is being created for.
리턴 object

CreateWith() 공개 메소드

The parameter is null. /// No or was found to /// generate a requested type. /// Failed to generate a requested type.
public CreateWith ( Type type ) : object
type System.Type
리턴 object

Initialize() 공개 메소드

The parameter is null. The parameter is null.
public Initialize ( IBuildConfiguration configuration, IBuildLog buildLog ) : void
configuration IBuildConfiguration
buildLog IBuildLog
리턴 void

Populate() 공개 메소드

The parameter is null. /// No or was found to /// generate a requested type. /// Failed to generate a requested type.
public Populate ( object instance ) : object
instance object
리턴 object

PopulateInstance() 보호된 메소드

Populates the settable properties on the specified instance.
The parameter is null.
protected PopulateInstance ( object instance ) : object
instance object The instance to populate.
리턴 object