I have a method receiving a function, usually a method. From that function I can access to the method's class and other stuff using MethodInfo. I want to be able to access the instance used, if any, when passing the function/method.
Example:
MyFunctionReceivingAMethod(new SomeClass().MethodA)
I want to access at MyFunctionReceivingAMethod to SomeClass instance from MethodA's reflection data. Is that possible?
Aucun commentaire:
Enregistrer un commentaire