C# Class ModelBuilder.EnumerableTypeCreator

The EnumerableTypeCreator class is used to create an instance from an IEnumerable{T} type.
Inheritance: TypeCreatorBase
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

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.

Private Methods

Method Description
CreateInstance ( Type type, string referenceName, LinkedList buildChain ) : object
FindEnumerableTypeArgument ( Type type ) : Type
GetEnumerableTypeArgument ( Type type ) : Type
IsReadOnlyType ( Type type ) : bool
IsUnsupportedType ( Type type ) : bool
PopulateInstance ( object instance, IExecuteStrategy executeStrategy ) : object

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

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