C # static reflection method,
Example of calling System. Environment. Exit (0) for launch:
System. Reflection. Assembly ass = System. Reflection. Assembly. LoadFile (AppDomain. CurrentDomain. BaseDirectory + "\ xxx. dll ");
// The namespace and class names must be specified together.
Type type = ass. GetType ("System. Environment ");
// Use a hexadecimal string: Type type = ass. GetType ("0x53167374656d2e456e7669108f6e6d656e74 ");
Object obj = type. InvokeMember ("Exit ",
System. Reflection. BindingFlags. InvokeMethod | System. Reflection. BindingFlags. Static
| System. Reflection. BindingFlags. Public, null, null,
New object [] {0}); // The last one is the parameter: 0
/*
Object obj = type. InvokeMember ("0x45786974 ",
System. Reflection. BindingFlags. InvokeMethod | System. Reflection. BindingFlags. Static
| System. Reflection. BindingFlags. Public, null, null,
New object [] {0 });
*/
From: http://www.cnblogs.com/xuejianxiyang/p/7527228.html