using System;

namespace MyCompiler {
    public class TestStatic
    {
        public static int TestValue;

        public TestStatic()
        {
            if (TestValue == 0)
            {
                TestValue = 5;
            }
        }
        static TestStatic()
        {
            if (TestValue == 0)
            {
                TestValue = 10;
            }
            
        }

        public void Print()
        {
            if (TestValue == 5)
            {
                TestValue = 6;                
            }
            Console.WriteLine("TestValue : " + TestValue);

        } 
    }
    class Program {
        public static void Main(string[] args) {
            Console.WriteLine("Hello world!");
            TestStatic t = new TestStatic();
            t.Print();
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: