public static void DeRegister(BaseValidator validator, Form hostingForm) { // Remove this validator from the list of registered validators ValidatorCollection validators = (ValidatorCollection)_validators[hostingForm]; if (validators != null) { validators.Remove(validator); // Remove form bucket if all validators on the form are de-registered if (validators.Count == 0) { _validators.Remove(hostingForm); } } }
public override void Remove(BaseValidator x) { lock (this.m_root) m_collection.Remove(x); }