The Use of Using statement in C#

After reading the topic heading many readers will refer the using keyword which is use in the top of the code in C# some thing like this 

using system.Data;

But right now i am referring to another using statement which is also the part of C#. The syntax of this statement is some thing like this 

using (var conn = new SqlConnection("connection string"))
{
   conn.Open();

    // execute sql statement here on the connection you created
}

This statement is use in place of a try catch statement where you may need to add a try block and a catch block. So instead of these two statements the using statement automatically calls IDesposible method after the work is done on a resource it also automatically closes the connection even when there is an exception which  means it also removes the extra code used for finally statement.

 
 if (myRes!= null)
            // Call the object's Dispose method.
            ((IDisposable)myRes).Dispose();