C# Flow Control Introduction


This entry is part 1 of 2 in the series C# Flow Control

The post C# Introduction lists all of the C# series of posts we have at this site. Program execution will occur from one statement to the next in the order in which they were written, unless there is some kind of flow control is implemented by the coder or the framework you are working in. There are two methods of controlling program flow:

  • Branching
  • Looping

Both of these above techniques use Boolean logic. Boolean is a term named after the English methemetician George Boole.

There are three branching techniques available in C#.

Looping refers to the repeated execution of statements. This means that you can repeat operations as many times as you want without having to write the same code each time. You can loop through code a specified number of times or you can loop through code until a specific condition is reached.

  • do Loops
  • while Loops
  • for Loops
Series NavigationC# Ternary Operator >>