Exemple #1
0
 public bool ValidateLength(FormField field)
 {
     return(field.Value.Length <= field.Length);
 }
Exemple #2
0
        public bool IsValidRegex(FormField field)
        {
            Regex rg = new Regex(field.Regex);

            return(rg.IsMatch(field.Value));
        }