描述实现转换运算符的准则。
转换运算符将源类型转换为目标类型。
The conversion operator converts from a source type to a target type.
有关更多信息,请参见使用转换运算符。
讨论转换运算符的更改。
源类型提供转换运算符。
一个转换运算符的定义,返回您的类或结构的类型。
A definition of a conversion operator that returns the type of your class or structure.
为可空类型提供类库支持,包括转换运算符和算术运算符。
Library Support for nullable types, including conversion operators and arithmetic operators.
理想情况下,应存在客户研究数据,以支持定义转换运算符。
Ideally, customer research data should exist to support defining a conversion operator.
对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
在使用向上转换运算符时,编译器会尝试根据上下文来推断出要转换为的类型。
When you use the upcast operator, the compiler attempts to infer the type you are converting to from the context.
不过,可为类型定义隐式转换运算符,这样就可以对这些类型使用赋值运算符。
However, you can define implicit conversion operators for a type, which enable you to use the assignment operator with those types.
对于向上转换运算符,如果编译器无法根据上下文推断出特定的目标类型,则将报告错误。
As for the upcast operator, if the compiler cannot infer a specific target type from the context, it reports an error.
每个运算符都表示转换过程的一个步骤。
Each operator represents a step in the transformation process.
但是第二个if语句计算为True,因为变量i能被125整除(并且not运算符将结果0转换成布尔值True)。
But now the second if statement evaluates True because the variable I is evenly divisible by 125 (and the not operator turns the resulting 0 into a Boolean True).
要使阵列和表之间的转换成为可能,DB 2要提供新的array_agg函数和UNNES t运算符。
To make such conversions between arrays and tables possible, DB2 provides the new ARRAY_AGG function and UNNEST operator.
惟一的区别就是它使用Jython字典来保存String模板里的名称-值对,并使用%运算符来将该模板转换为有意义的sql字符串。
The only difference is the use a Jython dictionary to hold name, value pairs within a String template while use % operator to evaluate this template into a String of meaningful SQL.
转换的定义方法类似于运算符,并根据它们所转换到的类型命名。
Conversions are defined like operators and are named for the type to which they convert.
通过使用适当的运算符,可以轻松地将枚举转换为基础类型,如以下代码中所示。
You can easily convert enumerations to the underlying type by using the appropriate operator, as shown in the following code.
运算符用在了两个对象上,并且编译器找到多个转换。
An operator was used on two objects and the compiler found more than one conversion.
如果编译环境强制使用严格的语义,则此赋值运算符将隐式地执行扩大转换而不是收缩转换。
This assignment operator implicitly performs widening but not narrowing conversions if the compilation environment enforces strict semantics.
如果编译环境强制使用严格的语义,则此赋值运算符将隐式地执行扩大转换而不是收缩转换。
This assignment operator implicitly performs widening but not narrowing conversions if the compilation environment enforces strict semantics.
应用推荐