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,它使用模板类型的参数,还有返回类型。
It helps you test generic types by letting you pass non-specific type arguments.
它会让您传递非特定型别引数,以协助测试泛型型别。
The actual type arguments can be matched to the type variables defined by the generified class.
实际的类型参数可以由泛型类定义的类型变量匹配。
Only arithmetic, enumeration, pointer, pointer to member, and class type arguments are allowed.
只有算术,枚举,指针,指向成员和允许类的类型参数。
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的类型。
The type arguments need to be repeated on both sides of the assignment, but most of the time that repetition is redundant.
虽然类型参数需要在任务双方进行重复,但是大多数时候重复是多余的。
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中的代码。
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.
在定义泛型类时,可以对客户端代码能够在实例化类时用于类型参数的类型种类施加限制。
With an understanding of Generics, you can see that there should be no reason to replace the type arguments in this block of code with the typical 't' found in Generics.
基于对泛型的了解,你可以发现没有理由不在这段代码里替换类型参数为泛型里典型的'T '。
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.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
Returns a runtime type handle for the type identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.
传回指定之中继资料语汇基元所识别的型别之执行阶段型别控制代码,并指定此语汇基元所属范围中的型别和方法的泛型型别引数。
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.
返回由指定元数据标记标识的字段的运行时字段句柄,指定标记所在范围内的类型和方法的泛型类型参数。
Returns a runtime method handle for the method or constructor identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.
返回由指定元数据标记标识的类型的运行时类型句柄,指定标记所在范围内的类型和方法的泛型类型参数。
Then the type parameter instantiations would be inferred automatically from the method arguments.
然后会自动地从方法参数中推断出类型参数的实例化。
The arguments array contains your plot options, which depend on the type of plot you use.
参数数组包含您的绘图选项,这取决于您使用的绘图类型。
This method takes two arguments, the assessment type and a reference to the original event info (Figure 12).
此方法带两个参数,评估类型和原始事件信息的一个引用(图12)。
For example, you must include type information with arguments, return values with functions, and types for all variables.
例如,必须用参数形式包括进类型信息,必须用函数形式返回值和所有变量的类型。
Use assignment context, as in the simple scheme, and also use the type of constructor arguments (call this complex).
使用赋值上下文,如简单架构中那样,还使用构造函数参数的类型(称为复杂结构)。
First, you can take the same approach as you did with properties; you can serialize the required arguments together into a single type of string.
首先,可以采用与处理复杂属性相同的方法;可以将所需的多个参数序列化在一起,形成一个字符串类型的参数。
If you don't like keyword arguments, you can define a new method type that doesn't have them.
如果你不喜欢关键字参数,你可以定义一种新的不包含关键字参数的方法类型。
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
Just as the type parameters of a generic class are wrapped in Angle brackets, the arguments of a generic type application are wrapped in Angle brackets as well.
就像泛型类的类型参数用尖括号括起来那样,泛型类型应用程序的参数也是用尖括号括起来的。
The functional expression's type depends on the nature of the function and type of its arguments.
函数表达式的类型取决于函数的性质及其参数的类型。
The functional expression's type depends on the nature of the function and type of its arguments.
函数表达式的类型取决于函数的性质及其参数的类型。
应用推荐