Hi Jb,

Whenever I try copying branching or conditional instructions (such as
OpCodes.Br and OpCodes.Brfalse) from an existing method body to a new
method body, I noticed that Cecil doesn't update the offsets even
after I have added additional instructions to the new method body. For
example, the original method body had one brtrue.s instruction that
jumped to offset IL_0003C, and when I checked the instruction of the
new method body, the same branching instruction was pointing to the
same branching location even though the instruction that it was
pointing to was no longer at IL_0003C. Is there any way that Cecil can
help me here, or will I have to manually update these branch targets
myself? Thanks for the help, btw.

-Phil

-- 
--
mono-cecil

Reply via email to