Example #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 Expression Convert(Expression member)
 {
     return(_converter.Convert(_valdiatorInfo.Validator, member));
 }