共用方式為


BigInteger.Addition(BigInteger, BigInteger) 運算子

定義

兩個指定之 BigInteger 物件的值相加。

public:
 static System::Numerics::BigInteger operator +(System::Numerics::BigInteger left, System::Numerics::BigInteger right);
public:
 static System::Numerics::BigInteger operator +(System::Numerics::BigInteger left, System::Numerics::BigInteger right) = System::Numerics::IAdditionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>::op_Addition;
public static System.Numerics.BigInteger operator + (System.Numerics.BigInteger left, System.Numerics.BigInteger right);
static member ( + ) : System.Numerics.BigInteger * System.Numerics.BigInteger -> System.Numerics.BigInteger
Public Shared Operator + (left As BigInteger, right As BigInteger) As BigInteger

參數

left
BigInteger

要相加的第一個值。

right
BigInteger

要相加的第二個值。

傳回

leftright 的總和。

實作

備註

方法 Addition 會定義值的加法運算 BigInteger 。 它會啟用下列程式代碼:

BigInteger num1 = 1000456321;
BigInteger num2 = 90329434;
BigInteger sum = num1 + num2;
let num1 = 1000456321I
let num2 = 90329434I
let sum = num1 + num2
Dim num1 As BigInteger = 1000456321
Dim num2 As BigInteger = 90329434
Dim sum As BigInteger = num1 + num2

不支援自定義運算子的語言可以改為呼叫 Add 方法。

適用於

另請參閱