Skip to Content
.NET Common Language Runtime Unleashed
book

.NET Common Language Runtime Unleashed

by Kevin Burton
April 2002
Intermediate to advanced content levelIntermediate to advanced
1024 pages
23h 26m
English
Sams
Content preview from .NET Common Language Runtime Unleashed

Summary

When used properly, exceptions can add to an application's stability and robustness. The .NET Framework and the CLR have made exception handling mandatory, but at the same time, exceptions have never been easier to use and extend. In the interest of better exception and error handling, the following guidelines should prove beneficial:

  • Because it is so easy to handle and generate exceptions, great care should be taken to make sure you know when not to rely on exceptions. If, for example, an object can be tested for an invalid condition (such as null) to avoid having an exception raised, then do so. Suppose that you have an object that must be closed to free up the resources it was using, but closing an already closed object resulted in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Customizing the Microsoft® .NET Framework Common Language Runtime

Customizing the Microsoft® .NET Framework Common Language Runtime

Steven Pratschner

Publisher Resources

ISBN: 0672321246Purchase book