Common Type System—Exception Handlers
Exception Handlers
Each method may define a set of exception handler blocks of code. This is used to transform try/catch/finally blocks into IL, since the binary representation of IL has no inherent understanding of blocks.
This is entirely a language abstraction. An exception handler block specifies where its catch clauses live in
the IL using instruction offsets, which is then read by the runtime’s exception subsystem. Please refer to
Chapter 3 for an in-depth discussion of exception handling, including how handlers are encoded in the IL.
|

