Advertisement
Guest User

Untitled

a guest
May 7th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public void MyMethod()
  2. {
  3. global::System.Windows.Forms.MessageBox.Show("Sth");
  4. }
  5.  
  6. System.Reflection.Assembly myDllAssembly = System.Reflection.Assembly.LoadFile(@"PATHTools.dll");
  7. myDllAssembly.GetType().GetMethod("MyMethod").Invoke(myDllAssembly, null); //here we invoke MyMethod.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement