Пример #1
0
        /// <summary>
        /// Dispose of the archive
        /// </summary>
        /// <param name="disposing">true, right?</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            foreach (var item in cache.Values)
            {
                item.Dispose();
            }
            if (null != folderWrapper)
            {
                folderWrapper.Dispose();
            }
        }
Пример #2
0
 /// <summary>
 /// Dispose of the binary stream.
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Done with the binary reader
         if (null != binaryReader)
         {
             binaryReader.Dispose();
         }
         if (null != srcStream)
         {
             srcStream.Dispose();
         }
         folderWrapper.Dispose();
     }
 }