For numeric and enumeration types, the addition operator computes the sum of the two operands. The addition operator is defined for:
Byte
, Short
, Integer
and Long
. If integer overflow checking in on and the sum is outside the range of the result type, a System.OverflowException
exception is thrown. Otherwise, overflows are not reported and any significant high-order bits of the result are discarded.Single
and Double
. The sum is computed according to the rules of IEEE 754 arithmetic.Decimal
. If the resulting value is too large to represent in the decimal format, a System.OverflowException
exception is thrown. If the result value is too small to represent in the decimal format, the result is zero.String
and Char
. Both operands must be one of the two types. Both operands are widened to string and the two strings are concatenated together, with the first operand first and the second operand second. The result is String
.+
Expression