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

            memberVisitor.Visit(expression);
            return(memberVisitor.MemberPath);
        }
Beispiel #2
0
 public MemberPath(Expression destinationExpression) : this(MemberVisitor.GetMemberPath(destinationExpression))
 {
 }