BigInteger.Increment Operator

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Increments a BigInteger value by 1.

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

Syntax

'Declaration
Public Shared Operator ++ ( _
    value As BigInteger _
) As BigInteger
public static BigInteger operator ++(
    BigInteger value
)

Parameters

Return Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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