public ControlInfo(IEditorAdapter adapter) { if (adapter == null) { throw new ArgumentNullException("adapter"); } this.Adapter = adapter; }
public CompareToValidationRule(Control control, string errorText) { if (control == null) { throw new ArgumentNullException("control"); } if (errorText == null) { throw new ArgumentNullException("errorText"); } this.errorText = errorText; this.Control = control; this.adapter = EditorAdapterFactory.Create(control); }