문제

I am trying to unzip a file with DotNetZip but I get a error on the "e"

using (ZipFile zip = ZipFile.Read(openFileDialog1.FileName))
{
    foreach (ZipEntry e in zip)
    {
        e.Extract(Environment.CurrentDirectory, ExtractExistingFileAction.OverwriteSilently);
    }
}
도움이 되었습니까?

해결책

I suspect you are doing this inside an event handler which already has a parameter called e.

Try renaming e to entry inside the foreach.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top