Use naked type constraints on generic classes in scenarios in which you wish to enforce an inheritance relationship between two type parameters.

  • 在希望强制两个类型参数之间的继承关系的情况下,可对泛型类使用裸类型约束。
目录 查词历史