您要查找的是不是:
- An explicit conversion operator can be provided for lossy conversions. 对于有损转换,可以提供显式转换运算符。
- Unlike implicit conversion, explicit conversion operators must be invoked by means of a cast. 与隐式转换不同,必须通过强制转换的方式来调用显式转换运算符。
- Explicit conversion operators require a type cast be present in the source code to perform the conversion. 显式转换运算符则要求在源代码中指定类型转换才能执行转换。
- explicit conversion operator 显式转换算符
- Conversion operators can be explicit or implicit. 转换运算符可以是explicit,也可以是implicit。
- Explicit conversion cannot be used to convert between incompatible data types. 显式转换不能用于在不兼容的数据类型之间执行转换。
- The operator symbol is always CType Function for a type conversion operator. 类型转换运算符的符号总是CType函数。
- Consult the documentation for the language you are using for information about explicit conversion behavior. 有关显式转换行为的信息,请参见所用语言的文档。
- Performing an explicit conversion is also known as casting an expression to a given data type or object class. 执行显式转换即所谓的将表达式“强制转换”为给定的数据类型或对象类。
- The following code example uses explicit conversion to convert a double value to an integer value. 下面的代码示例使用显式转换将一个双精度值转换为一个整数值。
- Explains the concept of type conversion and the distinction between implicit and explicit conversion. 解释类型转换的概念以及隐式和显式转换的不同。
- Thrown when an explicit conversion from a base type to an interface or to a derived type fails at runtime. 当从基类型到接口或派生类型的显式转换在运行时失败时,就会引发此异常。
- The behavior of the explicit conversion depends on both the original data type and the target data type. 显式转换的行为取决于原始数据类型和目标数据类型。
- Do not provide an implicit conversion operator if the conversion is potentially lossy. 如果转换可能丢失信息,则不要提供隐式转换运算符。
- Furthermore, explicit conversions can handle lossy conversions. 而且,显式转换可以处理有信息丢失的转换。
- Ideally, customer research data should exist to support defining a conversion operator. 理想情况下,应存在客户研究数据,以支持定义转换运算符。
- The expression is ambiguous because both a conversion operator and an overloaded version of + are defined. 因为既定义了转换操作符又定义了+的重载版本,该表达式具有二义性。
- Supplying a value in a SQL Server 2005 system data type, as long as the user-defined type supports implicit or explicit conversion from that type. 提供SQL Server 2005系统数据类型的值,条件是该用户定义类型支持该类型的隐式转换或显式转换。
- Do not define conversion operators outside of a type's domain. 不要在类型域之外定义转换运算符。
- Is popped from the stack and the conversion operation is attempted. 然后尝试执行转换操作。