title: How can you know if a stream is closed?
body: <p>I have a method with a Stream for input :</p>
  
  <pre><code>public void Export(Stream finalOutPutStream)
  </code></pre>
  
  <p>For test purposes, i call it with a memory stream, like this :</p>
  
  <pre><code>// When
  _exporter.Export(new System.IO.MemoryStream());
  </code></pre>
  
  <p>But when, in the method, i want to write on this memory stream, i get a ObjectDisposedException.</p>
  
  <p>This stream is not enclosed in a using statement, i do not call explicitely .Dispose().</p>
  
  <p>What happened ?</p>
  
  <p>Thanks :)</p>
  
  <p>--
  EDIT : my bad, the problem is from the third party writer (<a href="http://dotnetzip.codeplex.com/" rel="noreferrer">DotNetZip</a>). The exception happens when i call zip.Save(new MemoryStream()). I will ask my questions on their forum.
  Sorry, and thanks for the help.</p>