Exemplo n.º 1
0
        public static Expression PartialEval(Expression expression, Func <Expression, bool> fnCanBeEvaluated)
        {
            Nominator        n  = new Nominator(fnCanBeEvaluated);
            SubtreeEvaluator se = new SubtreeEvaluator(n.Nominate(expression));

            return(se.Eval(expression));
        }
Exemplo n.º 2
0
 public static Expression PartialEval(Expression expression, Func<Expression, bool> fnCanBeEvaluated)
 {
     Nominator n = new Nominator(fnCanBeEvaluated);
     SubtreeEvaluator se = new SubtreeEvaluator(n.Nominate(expression));
     return se.Eval(expression);
 }