Common Type System—Exception Handlers


Jump to: navigation, search
Visual C# Tutorials
.NET Framework Tutorials

Common Type System

© 2006 Wiley Publishing Inc.

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.



Previous_Page_.gif Next_Page_.gif





Personal tools