下面一个选项是改变返回值类型。
一个UML操作,并且以一个int作为返回值类型。
系统将为您创建与该方法的返回值类型相同的新局部变量。
A new local variable of the same type as the method's return value is created for you.
l你可以定义AsyncTask的参数类型和最终的返回值类型。
You can specify the type, using generics, of the parameters, the progress values and the final value of the task.
委托是一个定义签名的类型,即方法的返回值类型和参数列表类型。
A delegate declaration defines a reference type that can be used to encapsulate a method with a specific signature.
在某些情况下可能出现不兼容,例如两个接口使用不同的返回值类型定义同一个方法。
Incompatibilities can arise when, for example, two interfaces define the same method with different return value types.
返回值类型必须和函数的返回类型相同,或者可以转换成函数的返回类型。
The value returned must have the same type as the return type of the function or be a type that can be converted to that type.
创建一个uml类class1,并且向其添加一个操作op,其返回值类型为int。
Create a UML class class1 and add an operation op with return type int to it.
尽管同名的类方法和实例方法拥有相同的选择器,但它们可以有不同的参数类型和返回值类型。
Although identically named class methods and instance methods are represented by the same selector, they can have different parameter types and return types.
在比较操作的时候,API会比较名称(区分大小写)以及输入参数数据类型,并忽略返回值类型。
When comparing operations, it performs a case-sensitive name match along with a comparison of input argument data types, and ignores return types.
编译器同时也会确保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).
创建一个名为purevirtualop的UML操作,其返回值类型为int,参数x 的类型为 int。
Create a UML operation named purevirtualop with a return parameter of type int and a parameter x of type int.
不要使用定制类型作为参数或返回值。
不要使用变量或货币数据类型作为参数或返回值。
Do not use variants or the currency data type as parameters or return values.
例如,必须用参数形式包括进类型信息,必须用函数形式返回值和所有变量的类型。
For example, you must include type information with arguments, return values with functions, and types for all variables.
你可以可以为变量指明数据类型,输入参数,来自函数的返回值,用户自定义函数以及模板。
You are also able to specify data types for variables, input parameters, return values from functions, user-defined functions and templates.
您可以选择使用一个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.
另一种避免这样的麻烦的方式是永远为方法返回值声明类型,特别是为公用api定义方法的时候。
Another way to prevent these problems is to always declare return types for methods, especially when defining methods for a public API.
签名包含了类型名字,参数列表及其类型,以及方法的返回值。
The signature includes the type name, the list of parameters with types, and the method's return value.
此外,参数和返回值必须属于GWT可以序列化的类型。
Also, your parameters and return value must be of types that GWT can serialize.
你通常会把函数返回值赋给拥有更特定类型变量的时候遇到这样的错误。
You usually see this error when you assign a value returned from a function to a variable with a more specific type.
SOAP保证,返回值将以一个特定平台中的对应原生类型直接可用。
SOAP guarantees that a return value will be available directly in the corresponding native type in a particular platform.
参数类型列于圆括号中,在最后列出了返回值的类型。
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.
为返回值和参数定义XMLserializable类型。
Define XML serializable types for the return value (and the parameters).
Web服务操作的输入参数及数据类型的返回值对于Web服务的互操作性产生非常大的影响。
The input parameters and return values of data types of a Web service operation have a great impact on the interoperability of the Web service.
在BGGA方案中,可以声明function类型的变量、方法参数和方法返回值。
In the BGGA proposal, you can declare variables, method arguments, and method return values that are function types.
该实用程序的返回值实际上属于numbergeneratorasync类型,这是主接口的异步版本。
The return value of that utility is actually of type NumberGeneratorAsync, which is the asynchronous sibling of the main interface.
Scala通常可以推断出方法的返回值(但是方法参数的类型就不行了),所以我们不用显式声明。
Scala can usually infer the return type of the method (but not the types of the method arguments), so we drop the explicit declaration.
probev_timestamp_t是一种特殊的数据类型,用来从VUE时间戳函数返回值。
probev_timestamp_t is a special data type used to return the value from the VUE timestamp function.
在接口中再添加一个操作str_to_authority,将返回值设置为authorityid,参数类型设置为String。
Add one more operation str_to_authority in this interface with return type as AuthorityID and parameter as String.
应用推荐