I have the following code:
Point a = new Point(3, 3);
List<Point> points = new List<Point>();
points.Add(a);
a = new Point(50,50);
a.X += 50;
But say I want the last two lines of code to also affect the value in the list; how would I go about doing this? My guess would be to add pointers to the list? But I think even then "new Point(50,50);" would still not update the list's value?
Thanks