C# Class ModelBuilder.ArrayTypeCreator

The ArrayTypeCreator class is used to create an instance from array types.
Inheritance: DefaultTypeCreator
Datei anzeigen Open project: roryprimrose/ModelBuilder

Public Methods

Method 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

Protected Methods

Method Description
CreateChildItem ( Type type, IExecuteStrategy executeStrategy, object previousItem ) : object

Creates a child item given the context of a possible previous item being created.

Method Details

CanCreate() public method

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

CanPopulate() public method

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

Create() public method

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

CreateChildItem() protected method

Creates a child item given the context of a possible previous item being created.
The parameter is null.
protected CreateChildItem ( Type type, IExecuteStrategy executeStrategy, object previousItem ) : object
type System.Type The type of value to generate.
executeStrategy IExecuteStrategy The execute strategy.
previousItem object The previous item generated, or null.
return object

Populate() public method

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