System::operator+ 方法

System::operator+(const char_t, const String&) method

String concatenation.

String System::operator+(const char_t left, const String &right)
参数类型描述
const char_t要连接到字符串的字符。
rightconst String&String 用于连接。

ReturnValue

连接后的字符串。

另见

System::operator+(const T&, const Decimal&) method

返回一个新的 Decimal 类实例,该实例表示指定值与指定的 Decimal 对象所表示的值之和。

template<typename T,typename _> Decimal System::operator+(const T &x, const Decimal &d)
参数类型描述
xconst T&第一个加数
dconst Decimal&对表示第二个加数的 Decimal 对象的常量引用

ReturnValue

一个新的 Decimal 类实例,表示 xd 所表示的值之和。

另见

System::operator+(const T1&, const Nullable<T2>&) method

对非空和可空值进行求和。

template<typename T1,typename T2,typename> System::Nullable<decltype(some+other.get_Value())> System::operator+(const T1 &some, const Nullable<T2> &other)
参数描述
T1左操作数类型。
T2右操作数类型。
参数类型描述
一些const T1&左操作数。
其他const Nullable<T2>&右操作数。

ReturnValue

求和结果。

另见

System::operator+(MulticastDelegate<T>, MulticastDelegate<T>) method

将右侧委托的所有回调连接到左侧委托回调列表的末尾。

template<typename T> MulticastDelegate<T> System::operator+(MulticastDelegate<T> lhv, MulticastDelegate<T> rhv)
参数类型描述
lhvMulticastDelegate<T>添加回调的委托。
rhvMulticastDelegate<T>正在添加回调的委托。

ReturnValue

返回一个委托,其中包含左侧值的回调,然后是右侧的回调。

另见

System::operator+(T&, const String&) method

String concatenation.

template<typename T> std::enable_if<IsStringLiteral<T, char_t>::value, String>::type System::operator+(T &left, const String &right)
参数描述
TString 字面量类型。
参数类型描述
T&用于连接到字符串的文字。
rightconst String&String 用于连接。

ReturnValue

连接后的字符串。

另见

System::operator+(T&, const String&) method

String concatenation.

template<typename T> std::enable_if<IsStringPointer<T, char_t>::value, String>::type System::operator+(T &left, const String &right)
参数描述
TString 指针类型。
参数类型描述
leftT&String 指针,用于连接到字符串。
rightconst String&String 用于连接。

ReturnValue

连接后的字符串。

另见