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