7.11. A Brief Word Regarding Corrupted State Exceptions (CSE)

To wrap up our examination of C#'s structured exception handling support, allow me to mention a brand-new .NET 4.0 namespace called System.Runtime.ExceptionServices (which is a member of the mscorlib.dll assembly). This namespace is quite small, defining only two class types that can be used if you wish to equip various methods within your application (such as the Main() method) with the ability to intercept and process "corrupted state exceptions," otherwise known as CSEs.

As you learned back in Chapter 1, the .NET platform sits on top of the hosting operating system (such as Microsoft Windows). Now, based on your background in Windows programming, you may recall that the low-level ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.