public TypeConversionValidator(Type targetType, string messageTemplate, bool negated) : base(messageTemplate, null, negated)
 {
     ValidatorArgumentsValidatorHelper.ValidateTypeConversionValidator(targetType);
     this.targetType = targetType;
 }
示例#2
0
 public TypeConversionValidatorAttribute(Type targetType)
 {
     ValidatorArgumentsValidatorHelper.ValidateTypeConversionValidator(targetType);
     this.targetType = targetType;
 }