Exemplo n.º 1
0
 /// <summary>
 /// Flushes the stream
 /// </summary>
 public override void Flush()
 {
     if (fileStream == null)
     {
         throw new ObjectDisposedException("fileStream", "storage stream no longer available");
     }
     fileStream.Commit(0);
 }
Exemplo n.º 2
0
 protected void Dispose(bool isDisposing)
 {
     if (_Stream != null)
     {
         if (isDisposing)
         {
             _Stream.Commit(0);
         }
         Marshal.ReleaseComObject(_Stream);
         _Stream = null;
     }
 }