سؤال

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