Using closes sql connection brought over by a function
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4717789/in-a-using-block-is-a-sqlconnection-closed-on-return-or-exception">in a “using” block is a SqlConnection closed on return or exception?</a>  </p>
</blockquote>



<p>Would this <code>using</code> close this <code>_connection</code>?</p>

<pre><code>using(SqlConnection _connection = Class1.GetSqlConnection())  
{   //code inside the connection
}

//connection should be closed/ended?
</code></pre>

<p>I'm just wondering because <code>GetSqlConnection()</code> is a static function of <code>Class1</code> and the whole connection might not be closed because it is calling outside class' static function instead of straight?</p>

<pre><code> using(SqlConnection _connection = new SqlConnection(_connectionString)
 {   //code inside the connection
 }
</code></pre>
