Subterranean IL: Fault exception handlers
- by Simon Cooper
Fault event handlers are one of the two handler types that aren't available in C#. It behaves exactly like a finally, except it is only run if control flow exits the block due to an exception being thrown.
As an example, take the following method:
.method public static void FaultExample(bool throwException) {
.try {
ldstr "Entering try…