mercredi 8 janvier 2020

Loading a ParameterInfo using IL Emit

I am currently using Calling a method of existing object using IL Emit as a guide, and I can already do whatever is asked in question. Now, I have an attribute added to a parameter and I want to load that particular parameter's attribute so that I can call a method inside that attribute.

I know it can be done by loading the MethodInfo and then getting the ParameterInfo and then getting attribute of that ParameterInfo in IL; I am simply trying to avoid writing that much IL.

Is there a way to load a parameter's attribute in IL just like it is mentioned in the linked post?





Aucun commentaire:

Enregistrer un commentaire