Example #1
0
 internal RegexValidatorAttribute(string pattern, string patternResourceName, Type patternResourceType, RegexOptions options)
 {
     ValidatorArgumentsValidatorHelper.ValidateRegexValidator(pattern, patternResourceName, patternResourceType);
     this.pattern             = pattern;
     this.options             = options;
     this.patternResourceName = patternResourceName;
     this.patternResourceType = patternResourceType;
 }
Example #2
0
 public RegexValidator(string pattern, string patternResourceName, Type patternResourceType, RegexOptions options, string messageTemplate, bool negated) : base(messageTemplate, null, negated)
 {
     ValidatorArgumentsValidatorHelper.ValidateRegexValidator(pattern, patternResourceName, patternResourceType);
     this.pattern             = pattern;
     this.options             = options;
     this.patternResourceName = patternResourceName;
     this.patternResourceType = patternResourceType;
 }