public static MemberExpression Find(Expression query, ParameterExpression parameter) { var finder = new RootMemberFinder(parameter); finder.Visit(query); return(finder.found); }
public static MemberExpression Find(Expression expression, ParameterExpression parameter) { var mf = new RootMemberFinder { parameter = parameter }; mf.Visit(expression); return(mf.found); }