Example #1
0
 public void RegisterRule(TriviaRuleDelegate test, string name, string group)
 {
     _treeValidator.RegisterRule(test, name, group);
 }
        public void RegisterRule(TriviaRuleDelegate test, string name, string group)
        {
            if (test != null && !string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(group))
            {
                RegisterRule(new TriviaRule()
                {
                    Test = test,
                    Name = name,
                    Group = group
                }

                );
            }
        }