title: Is calling MemoryStream.ToArray() dangerous after disposing?
body: <p>In the below code, is there any chance the GC will clean out the MemoryStream so that ToArray will fail, since it is outside the using statement?</p>
  
  <pre><code>private static byte[] getBytes()
  {
      MemoryStream ms = null;
  
      using (ms = new MemoryStream())
      {
          // ...
      }
  
      return ms.ToArray();
  }
  </code></pre>