BigInteger.Addition(BigInteger, BigInteger) BigInteger.Addition(BigInteger, BigInteger) BigInteger.Addition(BigInteger, BigInteger) 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);
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 BigInteger BigInteger BigInteger

The first value to add.

right
BigInteger BigInteger BigInteger BigInteger

The second value to add.

Returns

The sum of left and right.

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;
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