Adds two Decimal values.
[C#] public static Decimal operator +( Decimal d1, Decimal d2 ); [C++] public: static Decimal operator op_Addition( Decimal d1, Decimal d2 ); [JScript] returnValue = d1 + d2;
[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.
[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.
The sum of adding two Decimal values.
Exception Type | Condition |
---|---|
OverflowException | if the sum is too large to represent as a Decimal. |
The op_Addition method performs the arithmetic addition operation by adding two Decimal values (d1 + d2)and returns the result.