void validate(){ if (Validator != null) { var isValid = Validator (this.Text); performValidation (isValid, ErrorMessage); } } }