Advertisement
Guest User

Untitled

a guest
May 25th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public struct Point
  2. {
  3. public int X { get; set; }
  4. public int Y { get; set; }
  5. }
  6. namespace ConsoleApplication
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. var points = new Point[1];
  13. var point = points[0];
  14. point.X = 10;
  15. Console.WriteLine(points[0].X);
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement