Example #1
0
 public static StringValidator IsOneOf(this StringValidator validator, string[] possibles)
 {
     validator.Possibles = possibles;
     return(validator);
 }
Example #2
0
 public static StringValidator StartsWith(this StringValidator validator, char start)
 {
     validator.Begining = start;
     return(validator);
 }
Example #3
0
 public static StringValidator Matches(this StringValidator validator, Regex pattern)
 {
     validator.RegexPattern = pattern;
     return(validator);
 }
Example #4
0
 public static StringValidator LengthIsExactly(this StringValidator validator, int length)
 {
     validator.ExactLength = length;
     return(validator);
 }