C# Class ModelBuilder.ExecuteOrderRule

The ExecuteOrderRule class is used to define the order of property population.
Show file Open project: roryprimrose/ModelBuilder

Public Methods

Method Description
ExecuteOrderRule ( Func evaluator, int priority ) : System

Initializes a new instance of the ExecuteOrderRule class.

ExecuteOrderRule ( Type targetType, Regex propertyExpression, int priority ) : System

Initializes a new instance of the ExecuteOrderRule class.

ExecuteOrderRule ( Type targetType, string propertyName, int priority ) : System

Initializes a new instance of the ExecuteOrderRule class.

IsMatch ( Type type, string propertyName ) : bool

Gets whether the specified type and property name match this rule.

Method Details

ExecuteOrderRule() public method

Initializes a new instance of the ExecuteOrderRule class.
The parameter is null.
public ExecuteOrderRule ( Func evaluator, int priority ) : System
evaluator Func The function that determines whether the rule is a match.
priority int The priority of the rule.
return System

ExecuteOrderRule() public method

Initializes a new instance of the ExecuteOrderRule class.
The and parameters are both null.
public ExecuteOrderRule ( Type targetType, Regex propertyExpression, int priority ) : System
targetType System.Type The target type that matches the rule.
propertyExpression System.Text.RegularExpressions.Regex The property name regular expression that matches the rule.
priority int The priority of the rule.
return System

ExecuteOrderRule() public method

Initializes a new instance of the ExecuteOrderRule class.
The and parameters are both null.
public ExecuteOrderRule ( Type targetType, string propertyName, int priority ) : System
targetType System.Type The target type that matches the rule.
propertyName string The property name that matches the rule.
priority int The priority of the rule.
return System

IsMatch() public method

Gets whether the specified type and property name match this rule.
public IsMatch ( Type type, string propertyName ) : bool
type System.Type The type to match.
propertyName string The property name to match.
return bool