3 ms·
It would be even better if checked was the default, and you had to use an unchecked block to get unchecked arithmetic.
by wtetzner 9y ago
It would be even better if checked was the default, and you had to use an unchecked block to get unchecked arithmetic.
- benaadams 9y agoCan set it at the project level; then you need to use unchecked instead: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/checked-and-unchecked https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...