Addition Operator

BigInteger.Addition Operator (BigInteger, BigInteger)


Adds the values of two specified BigInteger objects.

Namespace:   System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

public static BigInteger operator +(
	BigInteger left,
	BigInteger right


Type: System.Numerics.BigInteger

The first value to add.

Type: System.Numerics.BigInteger

The second value to add.

Return Value

Type: System.Numerics.BigInteger

The sum of left and right.

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;

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

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft