Rediger

Del via


BigInteger.Addition(BigInteger, BigInteger) Operator

Definition

Adds the values of two specified BigInteger objects.

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

Parameters

left
BigInteger

The first value to add.

right
BigInteger

The second value to add.

Returns

The sum of left and right.

Implements

Remarks

The Addition method defines the addition operation for BigInteger values. It enables code such as the following:

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

Languages that do not support custom operators can call the Add method instead.

Applies to

See also