C# LanguageChecked and Unchecked

Download C# Language for free

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

Related Examples

Checked and Unchecked