# ZipLib isZip, GZip, Tar and BZip2 libraryWritten entirely in C # for. NET platform. it is implemented as an assembly (installable in the GAC), and thus can easily be ininitialized into other projects (in any.. NET language ). # ZipLib was ported from the GNU Classpath ZIP library for use with # developer (http://www.icsharpcode.net/OpenSource/SD) which needed gzip/zip compression. later bzip2 compression and tar archiving was added due to popular demand.
Download: http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx
Compared with the Copression provided by. net, ZipLib is superior in terms of compression. It is much smaller than BZip2 compression. You can try it if you don't believe it. In addition, this function is more powerful. The following is a small example. The specific application source code is/Files/yank/Compress.rar.
1 using System;
2 using System. Data;
3 using System. IO;
4 using ICSharpCode. SharpZipLib. Zip. Compression;
5 using ICSharpCode. SharpZipLib. Zip. Compression. Streams;
6 using ICSharpCode. SharpZipLib. GZip;
7
8/** // <summary>
9 // Summary description for ICSharp
10 /// </summary>
11 public class ICSharp
12 {
13 public ICSharp ()
14