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

            memberVisitor.Visit(expression);
            return(memberVisitor.MemberPath);
        }
예제 #2
0
파일: MemberPath.cs 프로젝트: aday1986/Leo
 public MemberPath(Expression destinationExpression) : this(MemberVisitor.GetMemberPath(destinationExpression).Reverse())
 {
 }