Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
 private static void Demo1()
 {
     Console.WriteLine("In Demo1");
     try
     {
         Console.WriteLine("In try");
     }
     finally
     {
         Type1.M();
     }
 }