Reflection

1.通过System.Reflection.Assembly 的一些方法得到想要创建的对象的type

2.调用Activator.CreateInstance(type,args) ,创建相应的instance 

 

posted @ 2021-03-26 13:49  NinaGood  阅读(40)  评论(0编辑  收藏  举报