public ValidationRules AddPattern(string message, string pattern)
        {
            PatternValidation patternOptions = new PatternValidation();

            patternOptions.Message = message;
            patternOptions.Pattern = pattern;
            Dictionary.GetDictionary(this)["pattern"] = Dictionary.GetDictionary(patternOptions);
            return(this);
        }
 public ValidationRules AddPattern(string message, string pattern)
 {
     PatternValidation patternOptions = new PatternValidation();
     patternOptions.Message = message;
     patternOptions.Pattern = pattern;
     Dictionary.GetDictionary(this)["pattern"] = Dictionary.GetDictionary(patternOptions);
     return this;
 }