Checking your numbers don't overflow is safe, but slow. In C# 11, we have the option to turn it on or off for our own data types.
Source code available at: https://github.com/JasperKent/Checked-Arithmetic
Topics include:
- Generic math
- static virtual methods
- static abstract methods
- Operator overloading
- checked and unchecked arithmetic
- Debug and release build differences