Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assembly a = GetAssembly();
- Type t = ExportModule.GetExportType(a);
- if (t == null) throw new Exception("No proper type found.");
- object iExportModule = Activator.CreateInstance(t);
- object[] arguments = new object[] { _export.ConnectionString, GetFileName() };
- t.InvokeMember("ExecuteExport", BindingFlags.Default | BindingFlags.InvokeMethod,
- null, iExportModule, arguments);
Add Comment
Please, Sign In to add comment