I have been using Reflection to use Ionic.Zip.dll. I am able to create an instance of the ZipFile type but not able to access the Read method to extract a file.
Kindly share your thoughts. Thanks
- var DLL = Assembly.LoadFile(@"C:\Tools Use\Ionic.Zip.dll");
- var ZipFile = DLL.GetType("Ionic.Zip.ZipFile");
- var c = Activator.CreateInstance(ZipFile);
- var method = ZipFile.GetMethod("Read", BindingFlags.Static);
- //var method = theType.GetMethod("Read");
- //method.Invoke(c, new object[] { @"C:\Source\Filea" });

Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 13, 2016, 11:03 AM EDT
Kannan Nakkeeran3 reputationPosted May 13, 2016, 11:33 AM EDT