DotNetZip on CodePlex: http://dotnetzip.codeplex.com/
For details, see the source code ...... In short, it feels better than SharpZipLib. In addition, DotNetZip supports VB, C #, and any. NET language.
Pressurization: (stolen from CodePlex)
Using (ZipFile zip = new ZipFile ()) {// add this map file into the "images" directory in the zip archive add this PNG file to the zip file's "images" directory zip. addFile ("c :\\ images \ personal \ 7440-N49th.png", "images "); // add the report into a different directory in the archive, add the PDF file to the "files" directory of the zip file, and put readme.txt in the root directory zip. addFile ("c :\\ Reports \ 2008-Regional-Sales-Report.pdf", "files"); zip. addFile ("ReadMe.txt"); // Save the zipfile as myzipfile.zip. save ("MyZipFile.zip ");}
Easier decompression:
Using (ZipFile zip = new ZipFile ("MyZipFile.zip") {zip. ExtractAll ("c: \ myfolder", ExtractExistingFileAction. OverwriteSilently );}
That's all! All problems are fixed. Is it more convenient than SharpZipLib!