5.1 Introduction

In this chapter, we discuss C#’s if statement in additional detail and introduce the if…else and while statements—all of these building blocks allow you to specify the logic required for methods and properties to perform their tasks. We also introduce the compound assignment operators and the increment and decrement operators. Finally, we discuss additional details of C#’s simple types.