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; }
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; }