fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7.  
  8. try
  9. {
  10. Console.WriteLine("Before");
  11. throw new ArgumentNullException("argument");Console.WriteLine("After");
  12. }
  13. catch (ArgumentException ae)
  14. { Console.WriteLine("ArgumentException");}
  15. catch (Exception e)
  16. { Console.WriteLine("Exception"); }
  17. finally
  18. { Console.WriteLine("Finally"); }
  19.  
  20. }
  21. }
Success #stdin #stdout 0.03s 36944KB
stdin
Standard input is empty
stdout
Before
ArgumentException
Finally