fork(5) download
  1. using System;
  2.  
  3. public class Coordinate
  4. {
  5. private int _x = 34;
  6. public int X { get { return _x; } set { _x = value; } }
  7.  
  8. private readonly int _y = 89;
  9. public int Y { get { return _y; } }
  10.  
  11. private readonly int _z;
  12. public int Z { get { return _z; } }
  13.  
  14. public Coordinate()
  15. {
  16. _z = 42;
  17. }
  18. }
  19.  
  20. public class Test
  21. {
  22. public static void Main()
  23. {
  24. Coordinate x = new Coordinate();
  25. x.X = 123;
  26. }
  27. }
Success #stdin #stdout 0.01s 23192KB
stdin
Standard input is empty
stdout
Standard output is empty