BigInteger.Addition(BigInteger, BigInteger) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈