What do you guys find preferable?
private Point location;
public int LocationX { get { return location.X; } }
public int LocationY { get { return location.Y; } }
or
private Point location;
public Point Location { get { return location; } }
The problem with the second approach is that both X and Y can be mutated by the class' client, which in this case is not something I'd want to. Should I make a wrapper around Point so I can return an immutable Point?
Thanks