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" });
Kannan NakkeeranPosted May 13, 2016, 3:33 PM
Bhuvanesh MohankumarPosted May 13, 2016, 3:03 PM