C# Language Checked and Unchecked

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • checked(a + b) // checked expression
  • unchecked(a + b) // unchecked expression
  • checked { c = a + b; c += 5; } // checked block
  • unchecked { c = a + b; c += 5; } // unchecked block


Got any C# Language Question?