fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5.  
  6. public class Conf
  7. {
  8. public int level { get; set; }
  9. }
  10.  
  11. public static class Game
  12. {
  13. public static Conf conf { get; set; } = new Conf();
  14. }
  15.  
  16. public static void Main()
  17. {
  18. Game.conf.level = 5;
  19. Game.conf.level++;
  20. Console.WriteLine(Game.conf.level);
  21. }
  22. }
Success #stdin #stdout 0.02s 15884KB
stdin
Standard input is empty
stdout
6