public CountryFieldValidationPropertyDescriptor( string name, CountryFieldValidatorType fieldValidatorType) : base(name, string.Empty, string.Empty, false) { this._fieldValidatorType = fieldValidatorType; }
public CountryFieldValidator GetValidator(CountryFieldValidatorType type) { CountryFieldValidator countryFieldValidator = null; if (this.Validators != null && CountryFieldValidatorLookup.ContainsKey(type)) { for (int index = 0; index < this.Validators.Length; ++index) { CountryFieldValidator validator = this.Validators[index]; if (validator.Name == (string)CountryFieldValidatorLookup[type]) { countryFieldValidator = validator; break; } } } return(countryFieldValidator); }
public PhoneNumberDescriptors(string name, CountryFieldValidatorType type) : base(name, type) { }