public static Expression Evaluate( Expression expression, Func<Expression, Boolean> predicate ) { HashSet<Expression> canidates = new EvaluationNominator( predicate ).Nominate( expression ); return new SubtreeEvaluator( canidates ).Visit( expression ); }
public static Expression Evaluate(Expression expression, Func <Expression, Boolean> predicate) { HashSet <Expression> canidates = new EvaluationNominator(predicate).Nominate(expression); return(new SubtreeEvaluator(canidates).Visit(expression)); }