Chapter 2. C# Language Fundamentals

Topics in This Chapter

  • Overview of a C# ProgramIn addition to the basic elements that comprise a C# program, a developer needs to be aware of other .NET features such as commenting options and recommended naming conventions.

  • PrimitivesPrimitives are the basic data types defined by the FCL to represent numbers, characters, and dates.

  • OperatorsC# uses traditional operator syntax to perform arithmetic and conditional operations.

  • Program Flow StatementsProgram flow can be controlled using if and switch statements for selection; and while, do, for, and foreach clauses for iteration.

  • StringThe string class supports the expected string operations: concatenation, extracting substrings, searching for instances of ...

Get Core C# and .NET 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.