For example using this classes:
Public class InnerClass
{
string Value {get;set;}
}
public class ObjectClass
{
InnerClass Inner {get; set;}
}
And with a method like this:
public void SomeMethod<TObj, T>(Expression<Func<TObj, T>> exp) where T : InnerClass
{
// ??
}
I need to add "Value" property to the exp.
Calling the method:
SomeMethod(x => x.Inner);
I need to add value to the expression:
x => x.Inner.Value