3. Operators and Control Flow
IN THIS CHAPTER, you will learn about operators and control flow statements. Operators provide syntax for performing different calculations or actions appropriate for the operands within the calculation. Control flow statements provide the means for conditional logic within a program or looping over a section of code multiple times. After introducing the if
control flow statement, the chapter looks at the concept of Boolean expressions, which are embedded within many control flow statements, pointing out that integers will not cast explicitly to bool
and the advantages of this restriction. The chapter ends with a discussion of the primitive C# “preprocessor” and its accompanying directives.
Operators
Now that you ...
Get Essential C# 3.0: For .NET Framework 3.5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.