Home > Articles > Programming > C#

  • Print
  • + Share This
From the author of

From the author of

Blocks

Setting off code in blocks clearly delimits the beginning and ending of a unit of work and establishes scope. Begin a block of code with a left brace ({), and end it with a right brace (}). Blocks are required to specify the boundaries of many language elements such as classes, interfaces, structures, properties, indexers, events, and methods.

  • + Share This
  • 🔖 Save To Your Account