internal void Remove(ValidationRuleInfo rule) { for (int i = base.Count - 1; i >= 0; i--) { if (base[i].RuleName == rule.RuleName) { base.RemoveAt(i); break; } } }
internal BrokenRule(ValidationRuleInfo rule) { this._ruleName = rule.RuleName; this._description = rule.ValidationRuleArgs.Description; this._property = rule.ValidationRuleArgs.PropertyName; }
internal void Add(ValidationRuleInfo rule) { this.Remove(rule); base.Add(new BrokenRule(rule)); }