Library Support for nullable types, including conversion operators and arithmetic operators.
为可空类型提供类库支持,包括转换运算符和算术运算符。
Discusses changes to conversion operators.
讨论转换运算符的更改。
Some advice: don't use template conversion operators.
建议:不要用模板转换操作符。
Describes guidelines for implementing conversion operators.
描述实现转换运算符的准则。
Do not define conversion operators outside of a type's domain.
如果使用者并未明确预期有这类转换,请勿提供转换运算子。
Define conversion operators to simplify narrowing and widening conversions between numeric types.
定义转换操作符来简化数字类型之间的缩小和放大转换。
However, you can define implicit conversion operators for a type, which enable you to use the assignment operator with those types.
不过,可为类型定义隐式转换运算符,这样就可以对这些类型使用赋值运算符。
When you define a class or structure, you can define one or more conversion operators to convert that class or structure type to other types.
当您定义类别或结构时,可以定义一或多个将该类别或结构型别转换为其他型别的转换运算子。
In general, implicit conversion operators should never throw exceptions and never lose information so that they can be used safely without the programmer's awareness.
一般情况下,隐式转换运算符应当从不引发异常并且从不丢失信息,以便可以在程序员不知晓的情况下安全使用它们。
For more information, see Using Conversion Operators.
有关更多信息,请参见使用转换运算符。
For more information, see Using Conversion Operators.
有关更多信息,请参见使用转换运算符。
应用推荐