Increment Operator

BigInteger.Increment Operator

Increments a BigInteger value by 1.

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

public static BigInteger operator ++(
	BigInteger value


Type: System.Numerics.BigInteger
The value to increment.

Return Value

Type: System.Numerics.BigInteger
The value of the value parameter incremented by 1.

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

Languages that lack an increment operator (such as Visual Basic) or do not support custom operators can call the Add method instead, as the following example shows.

Because BigInteger objects are immutable, the Increment operator creates a new BigInteger object whose value is one more than the BigInteger object represented by value. Therefore, repeated calls to Increment may be expensive.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2016 Microsoft