C# Class ModelBuilder.NumericValueGenerator

The NumericValueGenerator class is used to generate random numeric values.
Inheritance: ValueGeneratorBase
Datei anzeigen Open project: roryprimrose/ModelBuilder

Public Methods

Method Description
IsSupported ( Type type, string referenceName, LinkedList buildChain ) : bool

Protected Methods

Method Description
GenerateValue ( Type type, string referenceName, LinkedList buildChain ) : object
GetMaximum ( Type type, string referenceName, object context ) : object

Returns the maximum value for the specified generation target.

GetMinimum ( Type type, string referenceName, object context ) : object

Returns the minimum value for the specified generation target.

Method Details

GenerateValue() protected method

protected GenerateValue ( Type type, string referenceName, LinkedList buildChain ) : object
type System.Type
referenceName string
buildChain LinkedList
return object

GetMaximum() protected method

Returns the maximum value for the specified generation target.
protected GetMaximum ( Type type, string referenceName, object context ) : object
type System.Type The type of value to generate.
referenceName string Identifies the possible parameter or property name the value is intended for.
context object The possible context object the value is being created for.
return object

GetMinimum() protected method

Returns the minimum value for the specified generation target.
protected GetMinimum ( Type type, string referenceName, object context ) : object
type System.Type The type of value to generate.
referenceName string Identifies the possible parameter or property name the value is intended for.
context object The possible context object the value is being created for.
return object

IsSupported() public method

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