public CreationRule ( Func |
||
evaluator | Func |
The function that determines whether the rule is a match. |
priority | int | The priority of the rule. |
creator | Func | The function that creates the value for the rule. |
return | System |
public CreationRule(
Func<Type, string, bool> evaluator,
int priority,
Func<Type, string, LinkedList<object>, object> creator)
{
if (evaluator == null)
{
throw new ArgumentNullException(nameof(evaluator));
}
if (creator == null)
{
throw new ArgumentNullException(nameof(creator));
}
_evaluator = evaluator;
_creator = creator;
Priority = priority;
}
CreationRule::CreationRule ( Func |
|
CreationRule::CreationRule ( |
|
CreationRule::CreationRule ( |
|
CreationRule::CreationRule ( |
|
CreationRule::CreationRule ( |