Hi, Simply emit your assembly with Cecil and use Assembly.Load*() methods to load it and find the method you want to execute.
But like Jb said, this really sounds like a bad idea when you a real DynamicMethod to do this kind of stuff with. Regards, Alex 2011/6/14 M. Gholam <[email protected]>: > Thanks, I saw that post, put the question remains, I will rephrase "How can > I do something similar?" > I am willing to pay the price of overhead and memory leakage. > > Cheers, > > > On 2011-06-14 18:30, Jb Evain wrote: >> >> On Fri, Jun 10, 2011 at 4:44 PM, mgholam<[email protected]> wrote: >>> >>> How can I do the following in Mono.Cecil? >> >> >> http://stackoverflow.com/questions/2656987/dynamicmethod-in-cecil/3164123#3164123 >> >> Jb >> > > -- > -- > mono-cecil -- -- mono-cecil
