Looking for c# Answers? Try Ask4KnowledgeBase
Looking for c# Keywords? Try Ask4Keywords

C# LanguageChecked and Unchecked


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