Controlling the Flow and Converting Types

This chapter is about writing code that makes decisions, repeats blocks of statements, converts between types, handling exceptions, and checking for overflows in number variables.

This chapter covers the following sections:

  • Selection statements
  • Iteration statements
  • Casting and converting between types
  • Handling exceptions
  • Checking for overflow

Get C# 7 and .NET: Designing Modern Cross-platform Applications 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.