C# 클래스 ModelBuilder.TypeCreatorBase

The TypeCreatorBase class is used to provide the common implementation of a type creator.
상속: ITypeCreator
파일 보기 프로젝트 열기: roryprimrose/ModelBuilder

공개 메소드들

메소드 설명
CanCreate ( Type type, string referenceName, LinkedList buildChain ) : bool
CanPopulate ( Type type, string referenceName, LinkedList buildChain ) : bool
Create ( Type type, string referenceName, LinkedList buildChain ) : object
Populate ( object instance, IExecuteStrategy executeStrategy ) : object

보호된 메소드들

메소드 설명
CreateInstance ( Type type, string referenceName, LinkedList buildChain ) : object

Creates an instance of the type with the specified arguments.

PopulateInstance ( object instance, IExecuteStrategy executeStrategy ) : object

Populates the specified instance using an execution strategy.

VerifyCreateRequest ( Type type, string referenceName, LinkedList buildChain ) : void

Verifies that the minimum required information has been provided in order to create an instance.

VerifyPopulateRequest ( Type type, string referenceName, LinkedList buildChain ) : void

Verifies that the minimum required information has been provided in order to populate an instance.

메소드 상세

CanCreate() 공개 메소드

The parameter is null.
public CanCreate ( Type type, string referenceName, LinkedList buildChain ) : bool
type System.Type
referenceName string
buildChain LinkedList
리턴 bool

CanPopulate() 공개 메소드

The parameter is null.
public CanPopulate ( Type type, string referenceName, LinkedList buildChain ) : bool
type System.Type
referenceName string
buildChain LinkedList
리턴 bool

Create() 공개 메소드

The parameter is null.
public Create ( Type type, string referenceName, LinkedList buildChain ) : object
type System.Type
referenceName string
buildChain LinkedList
리턴 object

CreateInstance() 보호된 추상적인 메소드

Creates an instance of the type with the specified arguments.
protected abstract CreateInstance ( Type type, string referenceName, LinkedList buildChain ) : object
type System.Type The type of instance to create.
referenceName string Identifies the possible parameter or property name the instance is intended for.
buildChain LinkedList The chain of instances built up to this point.
리턴 object

Populate() 공개 메소드

The parameter is null. The parameter is null.
public Populate ( object instance, IExecuteStrategy executeStrategy ) : object
instance object
executeStrategy IExecuteStrategy
리턴 object

PopulateInstance() 보호된 추상적인 메소드

Populates the specified instance using an execution strategy.
protected abstract PopulateInstance ( object instance, IExecuteStrategy executeStrategy ) : object
instance object The instance to populate.
executeStrategy IExecuteStrategy The execution strategy.
리턴 object

VerifyCreateRequest() 보호된 메소드

Verifies that the minimum required information has been provided in order to create an instance.
The parameter is null. This generator does not support creating the requested value.
protected VerifyCreateRequest ( Type type, string referenceName, LinkedList buildChain ) : void
type System.Type The type of value to generate.
referenceName string Identifies the possible parameter or property name this value is intended for.
buildChain LinkedList The chain of instances built up to this point.
리턴 void

VerifyPopulateRequest() 보호된 메소드

Verifies that the minimum required information has been provided in order to populate an instance.
The parameter is null. This generator does not support creating the requested value.
protected VerifyPopulateRequest ( Type type, string referenceName, LinkedList buildChain ) : void
type System.Type The type to evaluate.
referenceName string Identifies the possible parameter or property name the instance is intended for.
buildChain LinkedList The chain of instances built up to this point.
리턴 void