fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. enum MenuResult
  6. {
  7. Nothing, // Enums for game state
  8. Exit, // Enums for game state
  9. Play, // Enums for game state
  10. };
  11.  
  12. static MenuResult Show(int i)
  13. {
  14. return MenuResult.Exit;
  15. }
  16.  
  17. public static void Main()
  18. {
  19. Console.WriteLine("Returned: {0}", Show(1));
  20. }
  21. }
Success #stdin #stdout 0.05s 24024KB
stdin
Standard input is empty
stdout
Returned: Exit