摘要:
加载DLL文件 Assembly assembly2 = Assembly.LoadFrom("SqlServerDB.dll"); 获取指定类型 Type type2 = assembly2.GetType("SqlServerDB.PropertyClass"); 调用泛型方法 object o 阅读全文
posted @ 2022-03-25 17:09
码农阿亮
阅读(52)
评论(0)
推荐(0)
摘要:
加载DLL文件 Assembly assembly = Assembly.LoadFrom(@"SqlServerDB.dll"); 获取指定类型 Type type = assembly.GetType("SqlServerDB.GenericClass`2").MakeGenericType(t 阅读全文
posted @ 2022-03-25 17:05
码农阿亮
阅读(66)
评论(0)
推荐(0)
摘要:
一、使用方法 查找DLL文件, 通过Reflection反射类库里的各种方法来操作dll文件 二、步骤 加载DLL文件 Assembly assembly1 = Assembly.Load("SqlServerDB");//方式一:这个DLL文件要在启动项目下 string filePath = E 阅读全文
posted @ 2022-03-25 16:36
码农阿亮
阅读(252)
评论(0)
推荐(0)

浙公网安备 33010602011771号