Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include "pch.h"
  2. #using "System.Windows.Forms.dll"
  3. using namespace System::Windows::Forms;
  4. class bjectName
  5. {
  6. void MAYNE()
  7. {
  8. MessageBox::Show("Any text here");
  9. }
  10. };
  11.  
  12. Dim asm As Assembly = Assembly.Load(something)
  13. For Each type As Type In asm.GetExportedTypes()
  14. If type.FullName.EndsWith(".bjectName")
  15.  
  16. Dim c As Object = Activator.CreateInstance(type)
  17. Dim returnValue = DirectCast(type.InvokeMember("MAYNE", BindingFlags.InvokeMethod Or BindingFlags.Static Or BindingFlags.Public, Nothing, c, New Object() {}), String)
  18.  
  19. End If
  20. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement