using ICSharpCode.SharpZipLib.Zip; ZipFile zipFile = new ZipFile("example.zip"); // code to read or write to zip file zipFile.Close();
using ICSharpCode.SharpZipLib.Zip; try { ZipFile zipFile = new ZipFile("example.zip"); // code to read or write to zip file zipFile.Close(); } catch (Exception ex) { Console.WriteLine("Error: " + ex.Message); }This example uses a try-catch block to catch any exceptions that may occur when accessing the zip file. If an exception is caught, the error message is printed to the console. Package Library: ICSharpCode.SharpZipLib
public Close ( ) : void | ||
return | void |