Exemplo n.º 1
0
 /// <summary>
 /// 返回当前类型是否是指定基类的派生类
 /// </summary>
 /// <param name="type">类型</param>
 /// <param name="baseType">基类类型</param>
 public static bool IsBaseOn(this Type type, Type baseType) => Reflections.IsBaseOn(type, baseType);
Exemplo n.º 2
0
 /// <summary>
 /// 返回当前类型是否是指定基类的派生类
 /// </summary>
 /// <typeparam name="TBaseType">基类型</typeparam>
 /// <param name="type">类型</param>
 public static bool IsBaseOn <TBaseType>(this Type type) => Reflections.IsBaseOn <TBaseType>(type);