The implicit conversion operator is defined, which converts a Point type to int.
隐式转换操作符将Point类型转换为int。
Explains the concept of type conversion and the distinction between implicit and explicit conversion.
解释类型转换的概念以及隐式和显式转换的不同。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
However, you can define implicit conversion operators for a type, which enable you to use the assignment operator with those types.
不过,可为类型定义隐式转换运算符,这样就可以对这些类型使用赋值运算符。
Explicit numeric conversion is used to convert any numeric type to any other numeric type, for which there is no implicit conversion, by using a cast expression.
显式数值转换用于通过显式转换表达式,将任何数字类型转换为任何其他数字类型。对于它不存在隐式转换。
When a constraint is applied to a generic type parameter, an implicit identity or reference conversion must exist from the concrete argument to the type of the constraint.
在将某一约束应用于泛型类型参数时,必须存在从具体参数到该约束类型的隐式标识或引用转换。
Use it to enable implicit conversions between a user-defined type and another type, if the conversion is guaranteed not to cause a loss of data.
使用它可启用使用者定义型别和其他型别之间的隐含转换,但前提是要保证转换作业不会导致资料的遗失。
Use it to enable implicit conversions between a user-defined type and another type, if the conversion is guaranteed not to cause a loss of data.
使用它可启用使用者定义型别和其他型别之间的隐含转换,但前提是要保证转换作业不会导致资料的遗失。
应用推荐