hits counter
  Create Free Blog | Random Blog »   Report Abuse | Login   

 

Exception Handling .NET Try Catch Finally Block working

Exception handling and performance
The vanila try- catch statement:

try
{
// Execute the code for SQL
}
Catch(Exception Ex)
{
// Handle the exception.
}
In the above example the try catch encapsulates a piece of code executing some DB operations.
In case there is an exception thrown in the try block code the exception will be smartly catched in the catch block [...]