/** * Core constructor which takes method and attributes * Other constructors will call this */ public Rule(Func <COMPONENT, OUTPUT, bool> method, RuleAttributes ruleAttributes) { RuleMethod = method; ruleAttributes.Name = setMethodName(RuleMethod, ruleAttributes.Name); RuleAttributes = ruleAttributes; }
public Rule(IRule <COMPONENT, OUTPUT> rule, RuleAttributes ruleAttributes) { RuleMethod = rule.RuleMethod; RuleAttributes = (ruleAttributes == null ? new RuleAttributes() : ruleAttributes); ruleAttributes.Name = setMethodName(RuleMethod, ruleAttributes.Name); }
/** * Core constructor which takes method and attributes * Other constructors will call this */ public Rule(RuleMethod method, RuleAttributes ruleAttributes) { RuleMethod = method; ruleAttributes.Name = setMethodName(RuleMethod, ruleAttributes.Name); RuleAttributes = ruleAttributes; }