コード例 #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
ファイル: b51565.cs プロジェクト: layomia/dotnet_runtime
 static int Main()
 {
     try
     {
         AA.Method1();
         Console.WriteLine("failed");
         return(1);
     }
     catch (NullReferenceException)
     {
         Console.WriteLine("passed");
         return(100);
     }
 }