-
Book Overview & Buying
-
Table Of Contents
C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals - Tenth Edition
By :
Let’s start by looking at the basics of the grammar and vocabulary of C#. Throughout this chapter, you will create multiple console apps, with each one showing related features of the C# language.
The grammar of C# includes statements and blocks. To document your code, you can use comments.
In English, we indicate the end of a sentence with a period. A sentence can be composed of multiple words and phrases, with the order of words being part of the grammar. For example, in English, we say “the black cat.”
The adjective, black, comes before the noun, cat. However, French grammar has a different order; the adjective comes after the noun: “le chat noir.” What’s important to take away from this is that the order matters.
C# indicates the end of a statement with a semicolon. A statement can be composed of multiple types, variables, and expressions made up of tokens. Each token...