Example #1
0
            public static MemberExpression Find(Expression query, ParameterExpression parameter)
            {
                var finder = new RootMemberFinder(parameter);

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

                mf.Visit(expression);
                return(mf.found);
            }