Hi,

I have a method that's called many many times and needs to pass the
currently executing method into an "interceptor". I was doing
MethodBase.GetCurrentMethod(), but that has a significant performance
impact, so I was thinking to store the MethodInfo as static field and
just ldfld inside the MethodDefinition I'm rewriting.

Is there a way I can get from a MethodDefinition to a MethodInfo that
I want to store in my static field?

Let me know if I'm being unclear.

Thanks in advance.

-- 
--
mono-cecil

Reply via email to