using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.IO; using ICSharpCode.SharpZipLib.Zip; namespace Test { public class ZIP { /// <summary> /// 压缩文件 /// </summary> /// <para…
原文地址:https://www.cnblogs.com/GoCircle/p/6544678.html 本文只列举一个压缩帮助类,使用的是有要添加一个dll引用ICSharpCode.SharpZipLib.dll[下载地址]. 这个类压缩格式是ZIP的,文件后缀写成 .zip.如果用这个类来解压rar格式的压缩文件时会报错. using System; using System.Collections.Generic; using System.Linq; using System.Text…