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)"); } }
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)"); } }