在.net 4.5中 操作zip 文件

在.net 4.5中,可以轻松创建zip文件  首先,要引用2个命名空间
  System.IO.Compression.dll System.IO.Compression.FileSystem.dll
  ZipFile
  ZipArchive
  ZipArchiveEntry
  ZipFile类提供了用于创建、 打开和解压缩 zip 文件的静态方法。
  ZipArchive 类表示一些压缩使用 Zip 文件格式的文件。
  ZipArchiveEntry 类表示单个 ZipArchive。ZipArchive 通常包含一个或多个 ZipArchiveEntry 实例