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