| 1. | The text strings are converted with the casting operator ,因此,应使用转换运算符 |
| 2. | The expression cannot use sizeof or a type - cast operator 表达式不能使用sizeof运算符或者时一个强制类型转换符。 |
| 3. | The cast operator cannot be overloaded , but you can define new conversion operators see 不能重载转换运算符,但可定义新的转换运算符(请参见 |
| 4. | Use the cast operator e . g . ( int ) my float to convert one variable type to another on the fly 如果数学计算需要分数,那么就要使用浮点变量,但也要知道它的缺点:体积大,计算速度慢。 |
| 5. | The expression language includes a cast operator that supports casting between string , numeric , date , and binary data types 表达式语言包含支持在字符串、数值、日期和二进制大型对象块( blob )数据类型之间进行转换的转换运算符。 |
| 6. | The expression uses a combination of string literals , system variables , the concatenation and cast operators , and the datediff and getdate functions 该表达式使用字符串文字、系统变量、串联( + )和转换运算符以及datediff和getdate函数的组合。 |
| 7. | Do throw system . invalidcastexception if a call to a cast operator results in a lossy conversion and the contract of the operator does not allow lossy conversions 如果对强制转换运算符的调用导致有损转换,而该运算符的协定不允许有损转换,则会引发system . invalidcastexception 。 |