C# Programming Tutorial

Variables in C# programming

In  any programing language including C#, variables are the memory space in computer where data can be stored. A variable in C# programming is defined by three main features: name, type and value (optional). Let us take an example:

int var = 1;

In above example, var is the name of variable, int is the type of variable var and 1 is the value stored in memory location.

C# Programming Keywords

In programming, keywords are reserved words for your compiler. Their meaning are already defined in compiler and are used for specific purpose only. These keywords cannot be used as identifiers(i.e, cannot be used for naming variables, classes etc.), however in C#, you can use keywords as variable or class name by using prefix "@".

Different Sections of a C# Program

Before we learn how to program in C#, we must first know about the sections of C# program. We must know every part of the program. This will help us know about code placement and it will be easier for us to write a program. So, let us look at a basic program in C# to understand different sections of C# program.

Different parts of C# Programming