fork 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. foreach(var val in values)
  10. Console.WriteLine(val);
  11. }
  12. }
  13.  
  14. public enum VehicleData
  15. {
  16. Dodge,
  17. BMW,
  18. Toyota
  19. }
Success #stdin #stdout 0.03s 28104KB
stdin
Standard input is empty
stdout
Dodge
BMW
Toyota