Hi, I have question regarding to make a function call from dynamic method. I am adding new Type using mono cecil to existing assembly. This type have two methods as 1. void foo1() and 2. void foo2(). I am adding "foo1()" first. How can I call Method "foo1()" from "foo2" as this is a new type and methods? I tried getting the "foo1" using GetMethods() and assign it to MethodReference and add below instruction. But i am unable to see it in ildasm.
method.Body.Instructions.Add(Instruction.Create(OpCodes.Call, module.Import(methodReference))); Can you please help me ? Thanks, Dhananjay -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
