示例#1
0
文件: Issue696.cs 项目: cbsistem/JSIL
 public static void Main(string[] args)
 {
     try
     {
         Sample s = new Sample();
         s.Action();
         Console.WriteLine("ExtraAccessToAvoidException - Success (not expected)");
     }
     catch (Exception)
     {
         Console.WriteLine("ExtraAccessToAvoidException - Failed (expected)");
     }
 }
示例#2
0
 public static void Main(string[] args)
 {
     try
     {
         Sample s = new Sample();
         s.Action();
         Console.WriteLine("ExtraAccessToAvoidException - Success (not expected)");
     }
     catch (Exception)
     {
         Console.WriteLine("ExtraAccessToAvoidException - Failed (expected)");
     }
 }