摘要: 首先给要创建的类增加构造函数 namespace ReflectionBLL { public class Person { private int _Id; private string _Name; private int _Age; public Person() { Console.Writ 阅读全文
posted @ 2022-12-20 15:40 luytest 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 我们通常 都是用反射来操作指定的程序集(dll,exe)、 需要引用 System.Reflection 有三种加载方式 Assembly assembly = Assembly.Load("ReflectionBLL");//dll的强名称(包括名称,版本,语言,公钥标记),比如(System.S 阅读全文
posted @ 2022-12-20 15:32 luytest 阅读(74) 评论(0) 推荐(0) 编辑