HandCoded.Validation.RuleSet.Add C# (CSharp) Method

Add() public method

Adds the indicated Rule instance to the RuleSet A Rule may be referenced by several RuleSet instances simultaneously.

If the Rule has the same name as a previously added one then it will replace it. This feature can be used to overwrite standard rules with customized ones.

public Add ( Rule rule ) : void
rule Rule The to be added.
return void
        public void Add(Rule rule)
        {
            rules [rule.Name] = rule;
        }

Same methods

RuleSet::Add ( RuleSet ruleSet ) : void