public DomainValidator(IEnumerable <T> domain, string messageTemplate, bool negated) : base(messageTemplate, null, negated) { ValidatorArgumentsValidatorHelper.ValidateDomainValidator(domain); this.domain = domain; }
public DomainValidatorAttribute(params object[] domain) { ValidatorArgumentsValidatorHelper.ValidateDomainValidator(domain); this.domain = domain; }