On Mon, May 24, 2010 at 3:21 PM, Timwi <[email protected]> wrote:
> If I want to create a “finally” block, apparently I have to set
> HandlerStart to the first instruction, but HandlerEnd to the *next*
> instruction following the last one. What do I do if the “finally”
> block is supposed to be at the end of the method, i.e. there is no
> next instruction?

You can leave the HandlerEnd to null, it will be emitted as
last_offset + 1. Or you can use a endfinally, or a nop as a marker.

-- 
Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to