Variable is assigned a value before it is referenced : Variable Assignment « Data Type « C# / CSharp Tutorial






class MainClass
{

  public static void Main()
  {

    int myValue = 2;
    System.Console.WriteLine(myValue);  

  }

}
2








2.57.Variable Assignment
2.57.1.Variable is assigned a value before it is referenced