Example #1
0
 public void ResetPosition()
 {
     Streams.ForEach(s =>
     {
         if (s.CanSeek)
         {
             s.Position = 0;
         }
     });
 }
Example #2
0
 public void Dispose()
 {
     Streams.ForEach(s =>
     {
         if (s != null)
         {
             s.Dispose();
         }
     });
 }
Example #3
0
 public void Dispose()
 {
     lock (this)
     {
         if (!_disposed)
         {
             Streams.ForEach(s => s.Dispose());
             _disposed = true;
         }
     }
 }