Hi I am trying to achive something like this;
Method<TObjectType>(m=>m.GetData); //m is the instance of TObjectType
if I can succeed on that, then I can visit this expression and get the GetData Method and use it for creating a dynamic sql query. I could do this by giving method name as a string however I don't want to break the strongly type world of my developer friends.
I know I have to give the exact definition of the delegate but this still doesn't helped me;
void Method<TObjectType>(Expression<Func<TObjectType, Delegate>> ex){/**/}
Do you have an idea?
GetData()
? Do you know that it will always have zero parameters, or something like that? – Stationer