[Tip: check overflow/underflow C#]

C# provides two operators: CHECKED/UNCHECKED to handle whether to treat the overflow/underflow as system error or ignore it. By default, this option is unchecked. As an alternative,

you can set this as a global setting in project setting like below:

原文地址:https://www.cnblogs.com/taoxu0903/p/1670633.html