Hi,

I'm a bit new to cecil and the CIL and since I couldn't find any
documentation on cecil I thought I'd try to post a question here. I
would like to be able to resolve parameters of an method call. I've
looked at what kind of information cecil provides and it looks like I
might need to use the StackBehaviourPush and StackBehaviourPop fields
for every instruction to maintain a stack while walking the method
body looking for method calls and then when I find a method call
inspect the stack and find the proper parameters.

I'm only interested in parameters that can be resolved within the
method body at inspection (ldstr instruction for example). I don't
need parameter values which are only available at run time.

Would keeping an internal stack be a good idea, because I think this
might be pretty difficult for all the different instructions
(especially the popvar and pushvar stack behaviours)?


Jesse


--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to