这个约束强制任何类型' T '都必须具有无参数的公共构造函数。
This constraint forces any type 't' to have a default constructor, that is, a constructor that takes no parameters.
单击特定参数就会显示详细信息,比如对参数作用的描述、参数类型、约束(比如最小值和最大值)和当前值。
Clicking on a specific parameter provides details, such as the description of what that parameter does, parameter type, constraints (like minimum value and maximum value), and current value.
通配符—使用一个奇怪的问号表示类型参数—是一种表示未知类型的类型约束的方法。
Wildcards - the funky question marks where a type parameter should go - are a means of expressing a type constraint in terms of an unknown type.
应用推荐