示例#1
0
文件: b28776.cs 项目: yukozh/coreclr
 static int Main()
 {
     try
     {
         Console.WriteLine("Testing AA::Method1");
         AA.Method1();
     }
     catch (Exception)
     {
         Console.WriteLine("Exception handled.");
     }
     return(100);
 }
示例#2
0
 static int Main()
 {
     try
     {
         AA.Method1();
         Console.WriteLine("failed");
         return(1);
     }
     catch (NullReferenceException)
     {
         Console.WriteLine("passed");
         return(100);
     }
 }