Program Flow Control: Control Structures

An application simply cannot function without control structures. The following sections will show you how programs written in C# execute code and in what order, as well as how you can change the way code executes with loops, conditionals, and more.

The Program Execution Path

Building an application requires the translation of business requirements into code. To implement business rules and application logic, it's necessary to have the ability to handle various conditions such as Hourly Wage > 50 and take the appropriate action. The next section is a guide through the control structures that C# offers to implement application logic, conditional processing, and looping. Most of what follows should be familiar ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.