哎,难道要这样 int count=0; ZipInputStream s = new ZipInputStream(File.OpenRead(zipFilePath)); while ((theEntry = s.GetNextEntry()) != null) { count++; } s = new ZipInputStream(File.OpenRead(zipFilePath)); while ((theEntry = s.GetNextEntry()) != null) { 解压。。
int count=0;
ZipInputStream s = new ZipInputStream(File.OpenRead(zipFilePath));
while ((theEntry = s.GetNextEntry()) != null)
{
count++;
} s = new ZipInputStream(File.OpenRead(zipFilePath));
while ((theEntry = s.GetNextEntry()) != null)
{
解压。。
}
非得这样么?