Punctuators are how you break up your code. In C# you have the following:

  • Semicolon ; – This ends all C# statements. It tells your program that the code you were writing for that particular statement has finished.
  • Comma , – “Stacks” multiple commands. So above when I used WriteLine, I “stacked” 3 variables for use with the routine.
  • Parentheses () – Used to force the order you code will execute. This is the same as their use in maths for complicated equations. For example (2+3)*8 would add 2 and 3 together first, and multiply that answer by 8.
  • Braces {} – Group pieces of code.