Пример #1
0
        public static bool Execute <T>(this IValidationExpressionConverter converter, object validator, T arg)
        {
            var param = Expression.Parameter(typeof(T));

            return(Expression.Lambda <Func <T, bool> >(converter.Convert(validator, param), param).Compile()(arg));
        }
 public ReadyConverter(ValidatorInfo validatorInfo, IValidationExpressionConverter converter)
 {
     _valdiatorInfo = validatorInfo;
     _converter     = converter;
 }