c# Rules For Defining Variables


In c# A variable is nothing but a name given to a storage area that our programs can manipulate.

Syntax:

<data type> <name>;

Example :
string name;


Assign Value Syntax:

<data type> <name> = <value>;


complete example:

private string name = "Nitin Kumar";