How to pattern-match a generic type argument?
如何匹配的泛型类型参数?
You can also omit the type argument and the compiler will infer it.
也可以省略类型参数,编译器将推断出该参数。
The type argument is the type of the value the expression evaluates to.
类型参数就是表达式要计算的值的类型。
A nested type argument is a type argument that is also a generic type.
巢状型别引数就是也是泛型型别的型别引数。
The generic type argument declares the type of result this CriteriaQuery will return upon execution.
泛型参数声明CriteriaQuery在执行时返回的结果的类型。
As a result, there are no fundamental difficulties with allowing this to be passed as a type argument.
其结果是,在允许将this作为类型参数传递时没有任何根本性的困难。
The type argument communicates the command to perform and is associated with an optional buffer with its length.
type参数是用于传递所执行的命令,它指定了可选的缓冲区长度。
The behavior of multiselect gets more interesting with Object as result type or if no type argument is specified.
如果以Object作为结果类型或没有指定类型参数时,multiselect的行为会变得更加有趣。
Client code must declare and instantiate a constructed type by specifying a type argument inside the Angle brackets.
客户端代码必须通过指定尖括号中的类型参数来声明和实例化构造类型。
Generally, both of the prior declarations should be avoided so that the type argument does not have to be specified when the member is called.
通常,前面的两种声明均应避免,以便在调用成员时不必指定类型参数。
Unfortunately, you can't invoke a generic constructor with a wildcard type argument, even though you know such a constructor exists. However, you can do this.
不幸的是,您不能用通配符类型的参数调用泛型构造函数,即使知道存在这样的构造函数也不行。
This time, a string concatenation has occurred within the same method, and the input parameter is now bound to a String type argument at function execution time.
这次,相同方法内发生了字符串串联,并且现在输入参数在函数运行时受到String类自变量的限制。
Note that a numeric addition has occurred because the input parameter to the add function is bound to an int type argument at function execution time. Now, try this.
请注意,由于add函数的输入参数在运行时被绑定到int类自变量,因此产生了数值的增加。
They are very basic type of argument, later you will see there are many types of arguments that are in these categories.
它们是论点的基本类型,之后你们会看到在这些类型中间,许多种类的论点。
The angle brackets assign a specific type (that is, the parameterized type) to the generic type represented by the "T" argument types.
尖括号为由 “T”参数类型表示的泛型指定具体类型。
The instanceof function provides a good way of checking type, but you can also roll object type checking into the method signature itself by using type hints in the argument list.
虽然 instanceof功能提供了一种检查类型的好方法,但您还可以通过在参数列表中使用类型提示,来将对象类型检查滚动到方法签名自身中。
What is passed as argument is an unnamed row type.
作为参数传递的是一个未命名的行类型。
You simply type the sigil in place of the argument.
您只需输入这些符号来代替相应的参数。
The method return type appears after the argument list.
方法的返回类型在参数列表的最后出现。
It's quite common to have the same data type used as an argument to multiple business methods, across multiple business delegates.
对跨多个业务委派中的多个业务方法使用相同的数据类型作为参数,这是十分常见的。
This syntax works by determining the most specific type common to each argument.
这种语法是通过判断与每个参数最接近的类型来实现的。
Be cautious about method overloading based on argument type when you write extension functions.
在编写扩展函数时,应谨慎处理根据实参类型进行的方法重载。
The array brackets come after the argument name instead of after the type.
数组括号紧接参数名之后,而非类型之后。
Other problems you may encounter are that the arguments are the incorrect type, the argument names are specified incorrectly; or the server may not be running.
其它可能遇到的问题是自变量类型不正确,指定的自变量名称不正确;或者服务器当机。
Each type of format can take a numerical argument as well, to tell the formatter how to properly apply the pattern.
每一种格式都会用到一个数值实参来告诉格式化程序如何适当地应用模式。
Unlike negotiating for the use of your parents' car, a college paper is not the place for an all-out blitz of every type of argument.
与说服父母借用家里的汽车不同,学校论文不是一个综合运用全部方法的闪击战。
The type of the argument should be the same as the type of value the full select is expecting.
参数的类型应该和全选择所期望的值类型相同。
The first argument is the output type — either XML or HTML.
第一个参数是输出类型,即XML或者HTML。
The event handler receives an argument of type ElapsedEventArgs.
事件处理函数接受一个ElapsedEventArgs类型的参数。
Policy: an output argument of type BLOB of maximum 2m that specifies the automatic maintenance Settings for the given policy type, in XML format.
policy:blob类型的输出参数,将以xml格式指定给定策略类型的自动维护设置,最大大小为2m。
应用推荐