C# 反射部分API记录

1 type.IsSubclassOf(typeof(Operation));//判断类型是否是某个类型的子类
2 type.IsAbstract;//判断类型是否是抽象类
3 Activator.CreateInstance(type, n1, n2);//创建实例,后面是构造函数参数
View Code
原文地址:https://www.cnblogs.com/Jason1019/p/8506789.html