You are previewing Fluent C#.

Fluent C#

Cover of Fluent C# by Rebecca M. Riordan Published by Sams

7. C# Language, Part 3: Intransitive Verbs

In the last chapter we explored C# expression syntax and had our first look at working with the objects of object-oriented programming. In this chapter, we’ll finish up our examination of the C# language syntax by examining the intransitive verbs of the language: commands.

There are two important types of commands in C#, and we’ll examine both of them in this chapter. Control-of-flow commands determine what code executes when (and how often). Exception handling commands tell your application what to do when things don’t go quite as expected, which of course things do, more often than not.

Although it’s not unknown for a program to start execution at line one and continue, line by line, to the end, most ...

The best content for your career. Discover unlimited learning on demand for around $1/day.