StaticConstructor - mehdimo/janett GitHub Wiki

In Java, a class can have several static constructors, but C# classes can have one, so we should combine all static constructors together.

[Java]

public class Test 
{
    static { a = b; }
    public void Method() {}
    static { c = d; }
}

[C#]

public class Test 
{
    static Test()
    {
        a = b;
        c = d;
    }
    public void Method() {}
}