public OffnetRuleSet Clone()
        {
            var newSet = new OffnetRuleSet();

            {
                foreach (var x in _defaults)
                {
                    newSet._defaults.Add(x.Key, (DefaultRuleValue)x.Value.Clone());
                }
                foreach (var x in _validValueRules)
                {
                    newSet._validValueRules.Add((IValidValueRule)x.Clone());
                }
                foreach (var x in _verifyRules)
                {
                    newSet._verifyRules.Add((IVerifyRule)x.Clone());
                }
                foreach (var x in _values)
                {
                    newSet._values.Add(x);
                }
            }
            return(newSet);
        }
 public void AddRules(OffnetRuleSet rs)
 {
     _validValueRules = rs._validValueRules;
     _verifyRules     = rs._verifyRules;
     _defaults        = rs._defaults;
 }