Exceptions

by Sam Allen | RSS

Exception handling is a powerful mechanism for catching errors in your code, and it is a major improvement over using result codes. Because it isolates error handling in a separate part of your program, it makes the control flow simpler. Handling exceptions correctly is one of the most important parts of critical applications; it can prevent expensive equipment from failure.

ArgumentException
ArrayTypeMismatchException
Catch Examples
Checked Overflow Context
Collection Was Modified Exception
Divide by Zero
Exception Overview
Exception Performance Test
File.Delete Exceptions
FileNotFoundException Tips
Finally Program
IndexOutOfRangeException
InvalidCastException
KeyNotFoundException Fix
NullReferenceException and Null Parameter
OutOfMemoryException
Stack Overflow (StackOverflowException)
Tester-Doer Pattern
TypeInitializationException

Dot Net Perls | Search
Featured | 7-Zip Command-Line Examples | DataGridView Tips and Secrets | Dictionary Examples, Keys and Values | List Examples | Split String Examples
C# | Obsolete Attribute | True and False | Gradient Tips | Catch Examples
© 2010 Sam Allen. All rights reserved.
Dot Net Perls | Sam Allen