fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. private static void Print(string msg)
  6. {
  7. Console.WriteLine(msg);
  8. }
  9.  
  10. private static void t()
  11. {
  12. string s = null;
  13. try
  14. {
  15. s = s.TrimStart();
  16. }
  17. catch (Exception ex)
  18. {
  19. s = "";
  20. Print(ex.StackTrace);
  21. Print("----------------------------");
  22. throw;
  23. }
  24. }
  25.  
  26. public static void Main()
  27. {
  28. try
  29. {
  30. t();
  31. }
  32. catch (Exception ex)
  33. {
  34. Print(ex.StackTrace);
  35. }
  36. Print(Environment.Version.ToString());
  37. }
  38. }
Success #stdin #stdout 0.01s 131520KB
stdin
Standard input is empty
stdout
  at Test.t () [0x00008] in <652c70277a6b4c2c9799c2bf4a449362>:0 
----------------------------
  at Test.t () [0x00008] in <652c70277a6b4c2c9799c2bf4a449362>:0 
4.0.30319.42000