protected override void OnValidate(PatternCheckContext context) { if (Value == null) { throw new Exception("Pattern has no value"); } Value.Validate(context); }
public void Validate(PatternCheckContext context) { if (_checked) { return; } // If checking a child causes this element to be // checked again, don't get caught in a loop. _checked = true; OnValidate(context); }
protected abstract void OnValidate(PatternCheckContext context);