public static Expression First(Expression expression, Predicate<Expression> isMatch) { var finder = new ExpressionsFinder(isMatch, true); finder.Visit(expression); return finder.results.FirstOrDefault(); }
public static bool FindExists(Expression expression, Predicate<Expression> isMatch) { var finder = new ExpressionsFinder(isMatch, true); finder.Visit(expression); return finder.results.Count > 0; }
public static List<Expression> FindAll(Expression expression, Predicate<Expression> isMatch) { var finder = new ExpressionsFinder(isMatch, false); finder.Visit(expression); return finder.results; }
public static List <Expression> FindAll(Expression expression, Predicate <Expression> isMatch) { var finder = new ExpressionsFinder(isMatch, false); finder.Visit(expression); return(finder.results); }
public static Expression First(Expression expression, Predicate <Expression> isMatch) { var finder = new ExpressionsFinder(isMatch, true); finder.Visit(expression); return(finder.results.FirstOrDefault()); }
public static bool FindExists(Expression expression, Predicate <Expression> isMatch) { var finder = new ExpressionsFinder(isMatch, true); finder.Visit(expression); return(finder.results.Count > 0); }