April 2, 2009
C# Intro to Try/Catch
Using “Try/Catch” in C#
A Try/Catch block is the error handling mechanism for .NET.
What you will learn here:
1) How to wrap your code in a “Try” statement
2) How to catch and display errors in the “Catch” statement
3) The three major properties of the Exception class (Message, Source, StackTrace) and the ToString() method.
Code for you to copy:
|
Video Demonstration:
Part 1 of 2
Part 2 of 2
Filed under C# Try/Catch by Administrator

