C# provides a number of methods for making decisions as code executes. You can branch execution of your code based on conditions you define—anything from a simple check on the value of a variable to the value of a complex expression that you create—with if and switch statements. Another common technique is to execute one block of code over and over again until some condition is met, which can be accomplished with the various kinds of loops provided by C#. Finally, C# supports jumping to locations in code outside of the normal sequential order of statements. You’ll even learn some narrow and specific uses for the much-maligned goto operator.
Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.
This course builds upon: Programming C# 6: Getting started, Your First App, Projects and Syntax and Variables and Data Types.
Meet the expert
Don Kiely is a featured instructor on many of our SQL Server and Visual Studio courses. He is a nationally recognized author, instructor, and consultant specializing in Microsoft technologies. Don has many years of teaching experience, is the author or co-author of several programming books, and has spoken at many industry conferences and user groups. In addition, Don is a consultant for a variety of companies that develop distributed applications for public and private organizations.
Time to complete
Conditional Branching (25:38)
Switch Statements (13:29)
Repeating Code Blocks (15:40)
Controlled Looping (24:43)
Unconditional Branching (14:40)