title: how to close all FileStreams related to specific file?
body: <p>I got a file stream:<br/></p>
  
  <pre><code>tempOutputStream = new FileStream(sTempFileName, FileMode.OpenOrCreate, 
      FileAccess.ReadWrite, FileShare.ReadWrite);
  </code></pre>
  
  <p>Once the file is created you can create additional FileStreams to read/write <code>tempOutputStream</code>.
  Is there a way to close all of them not having a ref to each stream obj? Or at least for the first one that creates the stream.</p>
  
  <p>the problem is that I'd like to delete the file but one of the streams is not closed so I got an exception in <code>File.Delete</code>...</p>
  
  <p>Thank you.</p>
  
  <p>Regards,
  Leonid</p>