运算子多载,适用于泛型及内建基本型别。
Operator overloading that works well with generics and built-in primitive types.
然后,您可以使用加法运算子多载来结合命名空间与本机名称 (以字串表示)。
You then use the addition operator overload to combine the namespace with the local name, expressed as a string.
若要使用此运算子,您必须将此运算子对指定的型别加以多载,或定义一个此运算子已定义型别的转换。
To use the operator, you must overload it for the specified type or define a conversion to a type for which the operator is defined.
应用推荐