Example #1
0
 public ContainsCharactersValidator(string characterSet, ContainsCharacters containsCharacters, string messageTemplate, bool negated)
     : base(messageTemplate, (string)null, negated)
 {
     ValidatorArgumentsValidatorHelper.ValidateContainsCharacterValidator(characterSet);
     this.characterSet       = characterSet;
     this.containsCharacters = containsCharacters;
 }
 public ContainsCharactersValidatorAttribute(string characterSet, ContainsCharacters containsCharacters)
 {
     ValidatorArgumentsValidatorHelper.ValidateContainsCharacterValidator(characterSet);
     this.characterSet       = characterSet;
     this.containsCharacters = containsCharacters;
 }