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