11.13.3 Addition Operator
The addition operator computes the sum of the two operands. The addition operator is defined for the following types:
- Byte, Short, Integer, and Long. If integer overflow checking is 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 0.
- String. The two String operands are concatenated together.
Note When resolving the addition operator for two Char operands, the operands are converted to String values.
AdditionOperatorExpression ::= Expression + Expression
11.13.4 Subtraction Operator | 11.13.5 Multiplication Operator | 11.13.6 Division Operators | 11.13.7 Mod Operator | 11.13.8 Exponentiation Operator | 11.13 Arithmetic Operators | + Operator (Visual Basic Language Reference) | Arithmetic Operators (Visual Basic Language Concepts)