这个约束强制任何类型'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.
你只是传递了类型T,一个没有约束的类型参数,所以它可以是任何类型。
You passed something known to be a t, an unconstrained type parameter, and hence it could be anything.
这些方程可以使用大范围的参数和属性,它们可以让你创建很多不同类型的约束。
The wide range of parameters and attributes available to these equations lets you create many different types of constraints.
建立了陀螺的高过载设计约束条件,包括陀螺所选用类型与尺寸参数。
The restriction of gyroscope's high overloading are presented, including gyroscope's style and structure dimension.
如果您的类型或函数的代码未以其他方式约束参数的类型,则该函数或类型将为隐式泛型。
If the code for your type or function does not otherwise constrain the types of parameters, the function or type is implicitly generic.
在将某一约束应用于泛型类型参数时,必须存在从具体参数到该约束类型的隐式标识或引用转换。
When a constraint is applied to a generic type parameter, an implicit identity or reference conversion must exist from the concrete argument to the type of the constraint.
通过某个可选参数声明了过程,该参数使用未约束为引用类型的类型参数。
A procedure is declared with an optional parameter that USES a type parameter that is not constrained to be a reference type.
通过某个可选参数声明了过程,该参数使用未约束为引用类型的类型参数。
A procedure is declared with an optional parameter that USES a type parameter that is not constrained to be a reference type.
应用推荐