private static void Demo1() { Console.WriteLine("In Demo1"); try { Console.WriteLine("In try"); } finally { // Type1’s static constructor is implicitly called in here Type1.M(); } }
private static void Demo1() { Console.WriteLine("In Demo1"); try { Console.WriteLine("In try"); } finally { Type1.M(); } }