Top "Using-statement" questions

A `using` statement is a C# and VB.

What does Using(.....){...} mean

Possible Duplicates: Using the using statment in c# What is the C# Using block and why should I use it? …

c# idisposable using using-statement
Are resources disposed even if an exception is thrown in a using block?

Possible Duplicate: Does Dispose method still get called when Exception is thrown inside of Using statment? I've got a number …

c# asp.net .net exception-handling using-statement
return the variable used for using inside the using C#

I am returning the variable I am creating in a using statement inside the using statement (sounds funny): public DataTable …

c# dispose idisposable using using-statement
What scope does a using statement have without curly braces

I inherited the following code: using (var dataAccessConnection = da.GetConnection()) //no opening curly brace here using (var command = new SqlCommand(…

c# ado.net using-statement
Set ReSharper to put the 'using' import outside the namespace

I've ReSharper v9.0 installed on my VS. I also use StyleCop. I've disabled SA1200, so when I put the using …

namespaces resharper stylecop using-statement
Does a C# using statement perform try/finally?

Suppose that I have the following code: private void UpdateDB(QuoteDataSet dataSet, Strint tableName) { using(SQLiteConnection conn = new SQLiteConnection(_connectionString)) { …

c# exception using using-statement
Can "using" with more than one resource cause a resource leak?

C# lets me do the following (example from MSDN): using (Font font3 = new Font("Arial", 10.0f), font4 = new Font("Arial", 10.0…

c# using using-statement
Is there a list of common object that implement IDisposable for the using statement?

I was wondering if there was some sort of cheat sheet for which objects go well with the using statement... …

c# asp.net dispose idisposable using-statement
Using Statements vs Namespace path? C#

I recently stopped using using-statements and instead use the full namespace path of any .net object that I call. Example: …

c# .net namespaces using-statement