Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Variables in C#

A variable is a storage holder, and is essential for the programmer.
In C#, a variable is declared like this:

Syntax:
  1. <data type> <name>;


An example could look like this:
  1. string name;


You can also control the visibility of a variable like this,

  1. <visibility> <data type> <name> = <value>;

  1. public string name; //Visible to all
  2. private string name; //Not visible to all



..