fork(3) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var count = typeof(ABC).GetFields().Length;
  8. Console.WriteLine(count);
  9. }
  10. }
  11.  
  12. static class ABC
  13. {
  14. public static int A;
  15. public static int B;
  16. public static int C;
  17. }
Success #stdin #stdout 0.03s 33920KB
stdin
Standard input is empty
stdout
3