public class Example { public class TestStatic { public static int TestValue; public TestStatic() { if (TestValue == 0) { TestValue = 10; } else { TestValue += 5; } } public void Print() { Console.WriteLine("TestValue : " + TestValue); } } public static void Main() { TestStatic t = new TestStatic(); t.Print(); TestStatic t1 = new TestStatic(); t1.Print(); TestStatic t2 = new TestStatic(); t2.Print(); }