C# Класс ModelBuilder.TypeCreatorBase

The TypeCreatorBase class is used to provide the common implementation of a type creator.
Наследование: ITypeCreator
Показать файл Открыть проект

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

Метод Описание
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