public static IEnumerable <MemberInfo> GetMemberPath(Expression expression)
        {
            var memberVisitor = new MemberVisitor();

            memberVisitor.Visit(expression);
            return(memberVisitor.MemberPath);
        }
Exemplo n.º 2
0
 public static MemberPaths GetMemberPaths <TResult>(Expression <Func <TResult, object> >[] membersToExpand) =>
 membersToExpand.Select(expr => MemberVisitor.GetMemberPath(expr));