.NET反射机制去调用一个DLL中的方法

摘要: NET反射机制去调用一个DLL中的方法 应用场景:通过配置dll文件,实现在运行时动态的创建类,并调用方法。 下面是一个简单的DEMO: public class Reflector { static string assemblyPath = "ReflectionTestDll"; // MD:返回任意类型的--object public static string GetMethod(string name) { string className = assemblyPath + "." + "R... 阅读全文
posted @ 2013-04-09 14:57 小猴猴 阅读(348) 评论(0) 推荐(0)