Unfortunately it isn't very simple. Have a look here.
Alternatively, you can just fake it. Consider changing your class so that the client code must specify what native methods it intends to call:
The class would just store those names and return them from
Alternatively, you can just fake it. Consider changing your class so that the client code must specify what native methods it intends to call:
user32 = new NativeLibraryImporter('user32.dll', 'MessageBox', 'MessageBeep'/* etc */);
GetDynamicMemberNames()
.