Ejemplo n.º 1
0
 /// <summary>
 /// 判断当前泛型类型是否可由指定类型的实例填充
 /// </summary>
 /// <param name="genericType">泛型类型</param>
 /// <param name="type">指定类型</param>
 public static bool IsGenericAssignableFrom(this Type genericType, Type type) => Reflections.IsGenericAssignableFrom(genericType, type);