title: .NET - Does Return prevent objects disposing
body: <p>Given the following code:</p>
  
  <pre><code>  Function GetSomething() As Integer
      Using dbConn As New SqlConnection("Connection_String")
        dbConn.Open()
        Using dbCmd As New SqlCommand(" SELECT SOMETHING ....", dbConn)
          Return Integer.Parse(dbCmd.ExecuteScalar())
        End Using
        dbConn.Close()
      End Using
    End Function
  </code></pre>
  
  <p>Will the Return prevent execution of the remainder of the function block i.e. the closing of the database connection and the implied Dispose() called when the Using block finishes?</p>