示例#1
0
 public EnumConversionValidator(Type enumType, string messageTemplate, bool negated) : base(messageTemplate, null, negated)
 {
     ValidatorArgumentsValidatorHelper.ValidateEnumConversionValidator(enumType);
     this.enumType = enumType;
 }
 public EnumConversionValidatorAttribute(Type enumType)
 {
     ValidatorArgumentsValidatorHelper.ValidateEnumConversionValidator(enumType);
     this.enumType = enumType;
 }