zip文件中的内容

Nir*_*bey 5 .net c# zip

如何在没有在c#中解压缩的情况下查找zip文件中的文件列表.

Mar*_*ell 8

使用sharpziplib:

ZipInputStream zip = new ZipInputStream(File.OpenRead(path));
ZipEntry item;
while ((item = zip.GetNextEntry()) != null)
{
    Console.WriteLine(item.Name);
}
Run Code Online (Sandbox Code Playgroud)