using System;
public class TestStatic
{
public static int TestValue;
public TestStatic()
if (TestValue == 0)
TestValue = 5;
}
static TestStatic()
TestValue = 10;
public void Print()
if (TestValue == 5)
TestValue = 6;
Console.WriteLine("TestValue : " + TestValue);
public class Program
public static void Main(string[] args)
Console.WriteLine("Hello World");
TestStatic t = new TestStatic();
t.Print();