コード例 #1
0
 public static Expression Evaluate( Expression expression, Func<Expression, Boolean> predicate )
 {
    HashSet<Expression> canidates = new EvaluationNominator( predicate ).Nominate( expression );
    return new SubtreeEvaluator( canidates ).Visit( expression );
 }
コード例 #2
0
        public static Expression Evaluate(Expression expression, Func <Expression, Boolean> predicate)
        {
            HashSet <Expression> canidates = new EvaluationNominator(predicate).Nominate(expression);

            return(new SubtreeEvaluator(canidates).Visit(expression));
        }