Home » C# Basics » 03 - C# Programming - Part 1
3

Some points of importance

Important things to remember in coding syntax of the C# program

The first thing we should know about the C# language is that it is case sensitive. It differentiates between uppercase and lowercase. In the coming sections, we will learn about variables, arrays, objects etc. When we create these elements, we give a name to them. We need to use the exact name in the program every time we use that element. For example, if a variable is created with the name `age', we cannot use it as `Age' or `AGE' in other parts of our program.

C# uses some words, which have a special meaning for the language. These words are used to create different constructs of the program such as decision-making or looping. Such words are known as the keywords. Some commonly used keywords are: if, else, switch, case, do, while, for, using and class. There are some other keywords too. We cannot use these keywords for naming variables, arrays, methods or objects.

Each line in the C# code is known as a statement and terminated by a semi-colon (;) symbol. Missing semi-colon at the end of the statements is a very common source of error in C# programs.