title: What happens if i return before the end of using statement? Will the dispose be called?
body: <p>I've the following code</p>
  
  <pre><code>using(MemoryStream ms = new MemoryStream())
  {
       //code
       return 0;
  }
  </code></pre>
  
  <p>The <code>dispose()</code> method is called at the end of <code>using</code> statement braces <code>}</code> right? Since I  <code>return</code> before the end of the <code>using</code> statement, will the <code>MemoryStream</code> object be disposed properly? What happens here?</p>