C# Class ModelBuilder.TypeCreatorBase

The TypeCreatorBase class is used to provide the common implementation of a type creator.
Inheritance: ITypeCreator
Afficher le fichier Open project: roryprimrose/ModelBuilder

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Method Details

CanCreate() public méthode

The parameter is null.
public CanCreate ( Type type, string referenceName, LinkedList buildChain ) : bool
type System.Type
referenceName string
buildChain LinkedList
Résultat bool

CanPopulate() public méthode

The parameter is null.
public CanPopulate ( Type type, string referenceName, LinkedList buildChain ) : bool
type System.Type
referenceName string
buildChain LinkedList
Résultat bool

Create() public méthode

The parameter is null.
public Create ( Type type, string referenceName, LinkedList buildChain ) : object
type System.Type
referenceName string
buildChain LinkedList
Résultat object

CreateInstance() protected abstract méthode

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.
Résultat object

Populate() public méthode

The parameter is null. The parameter is null.
public Populate ( object instance, IExecuteStrategy executeStrategy ) : object
instance object
executeStrategy IExecuteStrategy
Résultat object

PopulateInstance() protected abstract méthode

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.
Résultat object

VerifyCreateRequest() protected méthode

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.
Résultat void

VerifyPopulateRequest() protected méthode

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.
Résultat void