What is the difference between
checked(a + b)
and
unchecked(a + b)
?
Those are operators that check (or do not check) for overflow in the resulting numerical operation. In the checked
case, an OverflowException
exception is raised if the result of the operation exceeds the minimum or maximum value allowed for the datatype.
More information is available from MSDN.