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, ""); }
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, ""); }