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 方法。

适用于

另请参阅