fork(2) download
  1. using System;
  2. using System.Reflection;
  3.  
  4. public class Test
  5. {
  6. public enum CurrencyId {
  7. USD = 840,
  8. UAH = 980,
  9. RUR = 643,
  10. EUR = 978,
  11. KZT = 398,
  12. UNSUPPORTED = 0
  13. }
  14. public static void Main()
  15. {
  16. foreach(FieldInfo fi in typeof(CurrencyId).GetFields())
  17. if(fi.IsStatic) Console.WriteLine(fi.Name);
  18. }
  19. }
Success #stdin #stdout 0.02s 33808KB
stdin
Standard input is empty
stdout
USD
UAH
RUR
EUR
KZT
UNSUPPORTED