you can branch to an instruction I use this code to branch to a return (the last instruction)
cilWorker.InsertBefore(first, cilWorker.Create(OpCodes.Brtrue, last)); but you could branch to any instruction On Fri, Dec 17, 2010 at 10:30 PM, impworks <[email protected]> wrote: > How should I emit a branching opcode (brtrue, brfalse, etc) that > branches to a label, defined earlier or yet to be defined? > And what is the trick to place that label where I need? > > -- > -- > mono-cecil -- -- mono-cecil
