fork(3) download
  1. using System;
  2.  
  3. enum Direction
  4. {
  5. North,
  6. East,
  7. South,
  8. West
  9. };
  10.  
  11. public class Test
  12. {
  13. public static void Main()
  14. {
  15. Direction d = (Direction)Enum.Parse(typeof(Direction), "North");
  16. Console.WriteLine(d);
  17. }
  18. }
Success #stdin #stdout 0.05s 24048KB
stdin
Standard input is empty
stdout
North