Finally, it calls the overloaded function func with char type arguments.
最后,调用使用char类型的参数的重载函数func。
A template function GetMul with template type arguments and a return type as well.
模板函数GetMul,它使用模板类型的参数,还有返回类型。
The actual type arguments can be matched to the type variables defined by the generified class.
实际的类型参数可以由泛型类定义的类型变量匹配。
When we create a new instance of a Hashtable, we have to pass type arguments to specify the types of Key and Value.
创建一个新的Hashtable实例时,必须传递类型参数以指定Key和Value的类型。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates your class.
在定义泛型类时,可以对客户端代码能够在实例化类时用于类型参数的类型种类施加限制。
Returns a runtime field handle for the field identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.
返回由指定元数据标记标识的字段的运行时字段句柄,指定标记所在范围内的类型和方法的泛型类型参数。
The Infer Generic Type Arguments refactoring automatically tries to guess the appropriate generic types for classes used in their raw form.
InferGenericType Arguments重构会自动地为原始形式的那些类推测恰当的泛型类型(generic type)。
After I use the Infer Generic type Arguments refactoring, Eclipse automatically determines the correct type parameters and produces the code shown in Listing 8.
在使用了InferGenericType Arguments重构后,Eclipse会自动地确定正确的类型参数并生成清单8中的代码。
After I use the Infer Generic type Arguments refactoring, Eclipse automatically determines the correct type parameters and produces the code shown in Listing 8.
在使用了InferGenericType Arguments重构后,Eclipse会自动地确定正确的类型参数并生成清单8中的代码。
应用推荐