• A generic type parameter is a placeholder for a type.

    泛型类型参数是类型的占位符。

    youdao

  • Suppress the generation of a generic type parameter hash code and provide a legible type name instead.

    不要产生泛型类型参数的哈希值,使用一个易懂的类型名称作为替代。

    youdao

  • The name of a generic type parameter on an externally visible type or method does not start with an uppercase 't'.

    外部可见的类型或方法上的泛型类型参数的名称不以大写的“T”开头。

    youdao

  • A covariant delegate can be assigned another delegate of the same type, but with a more derived generic type parameter.

    可以向协变委托分配同一类型的其他委托,但需使用派生程度较大的泛型类型参数。

    youdao

  • Generic type parameter names should start with an uppercase 't' and optionally may be followed by another uppercase letter.

    泛型类型参数名称应以大写字母“T”开头,后面可跟另一个大写字母。

    youdao

  • A contravariant delegate can be assigned another delegate of the same type, but with a less derived generic type parameter.

    可以向逆变委托分配同一类型的其他委托,但需使用派生程度较小的泛型类型参数。

    youdao

  • To increase the usefulness of our generic code, instead of specifying the exact type of a generic type parameter, we can specify an upper (or lower) bound instead.

    要提高泛型代码的有效性,可以指定一个上限(或下限),而不是指定某个泛型类型参数的精确类型。 这可以使用有界通配符来实现,它的形式为 “?

    youdao

  • 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.

    在将某一约束应用于泛型类型参数时,必须存在从具体参数到该约束类型的隐式标识或引用转换。

    youdao

  • Because the runtime cannot tell a List from a List (at runtime, they're both just Lists), constructing variables whose type is identified by a generic type parameter is problematic.

    因为运行时不能区分List和List(运行时都是List),用泛型类型参数标识类型的变量的构造就成了问题。

    youdao

  • Generic type parameter declared with a final type bound The compiler will issue an error or warning whenever it encounters a type bound involving a final type. Consider this sample method signature.

    Generic type parameterdeclaredwithafinal typebound编译器每当遇到一个涉及final类型的类型绑定时,就会发出一个错误或者警告。

    youdao

  • In the case of generic methods, if a type parameter appears only once in the method signature, then it probably should be a wildcard rather than a named type parameter.

    就泛型方法来说,如果一个类型参数在方法签名中只出现一次,它很有可能是一个通配符而不是一个命名的类型参数。

    youdao

  • Because I want to demonstrate decoding generic types for this column, the type information needs to include the specific parameter types used with a generic type reference.

    因为我想在这一期中演示泛型的解码,所以类型信息需要包含泛型引用所使用的具体的参数类型。

    youdao

  • A signature defines the actual parameter types used with a generic type, so it provides the information I'll need to process type substitutions.

    签名定义了泛型实际使用的参数类型,所以它提供了处理类型替换时需要的信息。

    youdao

  • Thus, when a type parameter t is used as the superclass of a generic class, the annotation on t tells us exactly what super-constructors we can call.

    因此,当类型参数t用作泛型类的超类时,T的注释确切地告知我们可以调用哪些超级构造函数。

    youdao

  • With mixins formulated as generic classes, we always have a handle on the parent class, the type parameter that the class extends.

    将mixin明确表述为泛型类,我们就始终有父类的句柄,它是该类继承的类型参数。

    youdao

  • This method take service name, version, consumer type (generic QoS parameter) and callback interface name (optional parameter) and creates a service proxy for a given interface type.

    这个方法接收服务名称,版本,消费类型(一般的QoS参数)和回调接口名称(可选的参数),并为一个给定的接口类型创建一个服务代理。

    youdao

  • If that supplied class is a generic class, all fields of the class are processed as though the most general possible parameter type definitions were supplied for the class.

    如果提供的类是泛型类,那么即使为这个类提供了最通用的参数类型定义,也会处理类的所有字段。

    youdao

  • A closed generic type is a type declaration where a particular type is specified for a type parameter.

    封闭式泛型类型是为类型参数指定特定类型的类型声明。

    youdao

  • CA1004: Generic methods should provide type parameter.

    CA1004:泛型方法应提供类型参数。

    youdao

  • If the function code is not dependent on the type of a parameter, the compiler considers the parameter to be generic.

    如果函数代码不依赖于参数的类型,则编译器会将参数视为泛型。

    youdao

  • To be generic, the procedure must take at least one type parameter, in addition to any normal parameters it might take.

    若要成为泛型,除了可能采用的一般参数以外,程序至少必须采用一个型别参数。

    youdao

  • Specialized generic types are created one time for each unique value type that is used as a parameter.

    对于每个用作参数的唯一值类型,都会创建一次专用泛型类型。

    youdao

  • Commonly, a generic class will do more than just store data based on a type parameter. Often, the generic class will want to invoke methods on objects whose type is given by a type parameter.

    一般来说,一个泛型类不仅可以存储建立在类型参数上的数据,还能做更多。

    youdao

  • How the MSIL for a generic type is used differs based on whether the supplied type parameter is a value type or reference type.

    泛型类型的MSIL的使用因所提供的类型参数是值类型还是引用类型而不同。

    youdao

  • This can include automatically generalizing the type of a parameter to be generic.

    这可能包括自动将参数的类型通用化为泛型。

    youdao

  • Specialized generic types are created once for each unique value type used as a parameter.

    在泛型类中定义的委托,可以与类的方法一样地使用泛型类的类型参数。

    youdao

  • The name of the type parameter that is defined on a generic type is read-only.

    泛型类型上定义的类型参数的名称是只读的。

    youdao

  • A generic procedure can use its type parameters in its normal parameter list, in its return type if it has one, and in its procedure code.

    泛型程序可以在一般参数清单、传回型别(如果有的话)和程序程序码中使用自己的型别参数。

    youdao

  • The type parameter is not used as a generic constraint for the interface methods.

    型别参数不能当做介面方法的泛型条件约束使用。

    youdao

  • To enable inference, the parameter signature of a generic method must include a parameter that is of the same type as the type parameter for the method.

    若要启用推断,泛型方法的参数签章必须包含与方法之型别参数具有相同型别的参数。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定