C# 反射部分API记录

 

 

1 type.IsSubclassOf(typeof(Operation));//判断类型是否是某个类型的子类
2 type.IsAbstract;//判断类型是否是抽象类
3 Activator.CreateInstance(type, n1, n2);//创建实例,后面是构造函数参数
View Code

 

posted @ 2018-03-04 23:06  Jason's_Blog  阅读(263)  评论(0编辑  收藏  举报