Unless overridden for a specific object, this conversion happens within the constructor of the internal DocumentContext class.
除非针对特定对象重写,否则这种转变应在内部documentcontext类的构造函数中发生。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
A conversion operator and a constructor have been defined making the same conversion.
转换运算子和建构函式已经定义为产生相同的转换。
DateTime type should not be implemented as a conversion operator. Use a constructor to convert a type to another type that is not in the same domain.
另外,定义此运算子的支援可以是范例的形式,其中有一个或多个类似的型别需要这类转换。
DateTime type should not be implemented as a conversion operator. Use a constructor to convert a type to another type that is not in the same domain.
另外,定义此运算子的支援可以是范例的形式,其中有一个或多个类似的型别需要这类转换。
应用推荐