Пример #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));
        }
Пример #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);
 }