Ejemplo n.º 1
0
        public void RetriveMemberInfoFromExpression()
        {
            var subject = new TestSubject();

            Expression <Func <TestSubject, object> > expres  = (x) => x.SomeProperty;
            Expression <Action <TestSubject> >       expres1 = (x) => x.Method();
            Expression <Action <TestSubject> >       expres2 = (x) => x.VoidMethodWithParams(1, "");
            Expression <Func <TestSubject, object> > expres3 = (x) => x.ReturnMethodWithParams(1, "");
        }
Ejemplo n.º 2
0
        public void RetriveMemberInfoFromExpression()
        {
            var subject = new TestSubject();

            Expression<Func<TestSubject,object>> expres = (x) => x.SomeProperty;
            Expression<Action<TestSubject>> expres1 = (x) => x.Method();
            Expression<Action<TestSubject>> expres2 = (x) => x.VoidMethodWithParams(1,"");
            Expression<Func<TestSubject, object>> expres3 = (x) => x.ReturnMethodWithParams(1, "");
        }