fork download
  1. using System;
  2. using System.Reflection;
  3.  
  4. class Program
  5. {
  6. static void F1()
  7. {
  8. Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
  9. }
  10.  
  11. static void F2()
  12. {
  13. Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
  14. }
  15.  
  16. static void F3()
  17. {
  18. Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
  19. }
  20.  
  21. static void F4()
  22. {
  23. Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
  24. }
  25.  
  26. static void F5()
  27. {
  28. Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
  29. }
  30.  
  31. static void F6()
  32. {
  33. Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
  34. }
  35.  
  36. static void Main(string[] args)
  37. {
  38. Action action = new Action(F1);
  39. action += F2;
  40. action += F3;
  41. action += F4;
  42. action += F5;
  43. action += F6;
  44. action();
  45. Console.ReadLine();
  46. }
  47. }
Success #stdin #stdout 0.02s 33880KB
stdin
Standard input is empty
stdout
F1
F2
F3
F4
F5
F6