IAdditionOperators<TSelf,TOther,TResult>.CheckedAddition 操作员

定义

将两个值相加以计算其和。

public:
 static override TResult op_CheckedAddition(TSelf left, TOther right);
public static virtual TResult op_CheckedAddition (TSelf left, TOther right);
static member op_CheckedAddition : 'Self * 'Other -> 'Result
Public Shared Overrides op_CheckedAddition (left As TSelf, right As TOther) As TResult

参数

left
TSelf

要向其添加的值 right

right
TOther

要添加到 left的值。

返回

TResult

leftright 的和。

例外

right 的总left和不能由 TResult表示。

适用于