On Apr 23, 8:41 pm, Jb Evain <[email protected]> wrote: > Hi, > > On Sat, Apr 23, 2011 at 7:14 AM, GavinW <[email protected]> wrote: > > How do I overcome this? > > I really have to add that to the FAQ. > > You can use the extension methods from Cecil.Rocks: > > body.SimplifyMacros () > > before you inject code, it will turn br.s into br > > and you use > > body.OptimizeMacros () > > after you injected your code, it will try to turn br into br.s if possible. > > Jb
Thanks for the guide. I have another problem. How can I clone a method from another assembly? I tried searching but could not find anything. I tried it myself but would not work, it returned "Member already attached". I assumed it meant that method has already been fixed to a type. Regards. -- -- mono-cecil
