using System;
public static class Test
{
static Test()
Console.WriteLine("static ctor");
}
public static void MyMethod()
Console.WriteLine("mymethod");
public class Program
public static void Main()
Test.MyMethod(); // If you comment this you can see that static ctor wasn't executed which mean that the object hasn't been created.