fork(1) download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var values = Enum.GetNames(typeof(VehicleData))
  9. .ToArray();
  10. foreach(var val in values)
  11. Console.WriteLine(val);
  12. }
  13. }
  14.  
  15. public enum VehicleData
  16. {
  17. Dodge = 15001,
  18. BMW = 15002,
  19. Toyota = 15003
  20. }
Success #stdin #stdout 0.03s 27264KB
stdin
Standard input is empty
stdout
Dodge
BMW
Toyota