private void Cs6LogException() { try { var page = new Page(0, null); } catch (ArgumentException ex) when (LoggingFilter(ex)) { } }
private void Cs5LogException() { try { var page = new Page(0, null); } catch (ArgumentException ex) { Console.WriteLine("logging exception"); throw; } }