Example #1
0
 public static async Task ThrowAndAwait()
 {
     try
     {
         ExceptionTests.RethrowExceptionWithReference();
     }
     catch (ArgumentNullException)
     {
         await ExceptionTests.RunAsync();
     }
 }
Example #2
0
 public static void PrintRethrownWithReference()
 {
     try
     {
         ExceptionTests.RethrowExceptionWithReference();
     }
     catch (ArgumentNullException e)
     {
         e.Print();
     }
 }