数据类型应该是该方法返回值的类型。
The data type should be the return value of the method. The concrete example in Listing 3 should make this somewhat confusing requirement more clear.
一般情况下,返回值的类型取决于指定属性的类型。
In general, the type of the return value depends on the type of the specified attribute.
参数类型列于圆括号中,在最后列出了返回值的类型。
The types of the parameters of the method are listed inside of the parentheses, and the type of the return value is listed at the end.
也可以通过在最后一个参数后追加冒号和类型来指定返回值的类型。
You can also specify the type of the return value by appending the colon and type after the last parameter.
当返回值的类型很复杂时,这个重构将很有用,因为变量的类型是自动生成的。
This is useful when the return value has a complex type because the type of the variable is automatically generated.
尽量尝试将您的扩展函数设计为仅使用双精度、字符串、布尔和节点集作为实参和返回值的类型。
Try to design your extension functions so that they use only doubles, strings, booleans, and node-sets as both arguments and return values.
在这个示例中,由于我们提前知道了返回值的类型,因此我们把它从object转化成了String。
In this example, the returned value was converted from Object to String, since we knew its type ahead of time.
例如,必须用参数形式包括进类型信息,必须用函数形式返回值和所有变量的类型。
For example, you must include type information with arguments, return values with functions, and types for all variables.
签名包含了类型名字,参数列表及其类型,以及方法的返回值。
The signature includes the type name, the list of parameters with types, and the method's return value.
你可以可以为变量指明数据类型,输入参数,来自函数的返回值,用户自定义函数以及模板。
You are also able to specify data types for variables, input parameters, return values from functions, user-defined functions and templates.
此外,参数和返回值必须属于GWT可以序列化的类型。
Also, your parameters and return value must be of types that GWT can serialize.
在某些情况下可能出现不兼容,例如两个接口使用不同的返回值类型定义同一个方法。
Incompatibilities can arise when, for example, two interfaces define the same method with different return value types.
系统将为您创建与该方法的返回值类型相同的新局部变量。
A new local variable of the same type as the method's return value is created for you.
你通常会把函数返回值赋给拥有更特定类型变量的时候遇到这样的错误。
You usually see this error when you assign a value returned from a function to a variable with a more specific type.
在BGGA方案中,可以声明function类型的变量、方法参数和方法返回值。
In the BGGA proposal, you can declare variables, method arguments, and method return values that are function types.
泛型make方法为一些类型V返回一个Box,返回值被用于需要Box的上下文中。
The generic make method returns a Box for some type v, and the return value is being used in a context that requires a Box.
不要使用列表或数组作为参数或返回值(可以使用数组,不过必须使用稍后在本文中所描述的一种特定数据类型)。
Do not use lists or arrays as parameters or return values (arrays are possible, but you must use a special data type described later in this article).
另一种避免这样的麻烦的方式是永远为方法返回值声明类型,特别是为公用api定义方法的时候。
Another way to prevent these problems is to always declare return types for methods, especially when defining methods for a public API.
因此在决定如何对该方法的返回值进行强制类型转换时,必须同时考虑预期的返回类型和所用的数据模型。
One must therefore take into account both the expected return type and the data model when deciding how to cast the object that this method returns.
一个有返回值的方法必须包含一条返回语句指明返回结果。方法可以返回任何类型的结果。
A method that returns a value must have a return statement that specifies the result. Methods may return values of any type.
通过静态类型,编译器可以检查参数和变量的值或针对一个给定操作所允许的返回值。
With static typing, the compiler can check the values of arguments, variables, or return values against values allowed for a given operation.
您可以选择使用一个WSDL文件告诉客户端关于可用函数的信息,以及输入参数和返回值的个数和数据类型。
You can use an optional WSDL file to give clients information on the available methods, as well as the number and data types of input arguments and return values.
如果对于返回值没有较多要输入的数据,或者返回值无法计算时,此类型的模拟非常有用。
This is useful if you don't have much data to enter for the return value, or when the return values can't be computed.
如果启用了模式感知(参阅后面的 模式感知),这些类型的值可以来自转换的输入文档或者函数的返回值。
Values of these types can come from the input document of a transformation, if schema awareness is in effect (see Schema awareness further ahead), or as the return value of a function.
SOAP保证,返回值将以一个特定平台中的对应原生类型直接可用。
SOAP guarantees that a return value will be available directly in the corresponding native type in a particular platform.
编译器同时也会确保EndInvoke返回值类型和委托返回类型一致(在我们的例子中,这个类型是int)。
There also the compiler ensures that the return value of EndInvoke is the same as the return value of the delegate type (this type is an int in our example).
随后,方法返回时,适配器方法可将返回值转换为四种xpath类型之一,然后再返回转换后的值。
Then, when that method returns, the adapter method can convert the return value to one of the four XPath types and return that.
specific intrinsic的返回值也是qword类型的,它可以映射到您希望使用的任何向量类型。
The return value from specific intrinsics are also qwords, which can then be cast into whatever vector type you wish.
然后你声明一个float类型f,再赋值-,让我向上为你们回滚到-,给出了GetFloat的返回值。
Then you declare a float called f and then assign it -- -- let me scroll up for the folks in front -- that give return value of GetFloat.
在比较操作的时候,API会比较名称(区分大小写)以及输入参数数据类型,并忽略返回值类型。
When comparing operations, it performs a case-sensitive name match along with a comparison of input argument data types, and ignores return types.
应用推荐