As with any call, an argument might match its parameter either because the types match exactly or because there is a conversion from the argument type to the type of the parameter.
与任意函数调用一样,实参必须与它的形参匹配,它们的类型要么精确匹配,要么实参类型能够转换为形参类型。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
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.
在将某一约束应用于泛型类型参数时,必须存在从具体参数到该约束类型的隐式标识或引用转换。
A definition of a conversion operator where the argument is of the type of your class or structure.
转换运算子的定义,其中引数的型别就是类别或结构的型别。
A procedure is called with an argument that widens to the corresponding parameter type, and the conversion from the parameter to the argument is narrowing.
调用过程时使用扩大到对应参数类型的变量,从参数到变量的转换则为缩小转换。
Either the type of the argument to be converted, or the type of the result of the conversion, but not both, must be the containing type.
在要转换的型别引数或转换所产生的型别中,必须有一个是包含型别,但不能两者都是。
Selects a member from a list of candidates, and performs type conversion from actual argument type to formal argument type.
从候选者列表中选择一个成员,并执行实参类型到形参类型的类型转换。
Selects a member from a list of candidates, and performs type conversion from actual argument type to formal argument type.
从候选者列表中选择一个成员,并执行实参类型到形参类型的类型转换。
应用推荐