Original Post
I am making a Pong clone to get familiar with Primitves and SDL.NET in general. My paddles are SdlDotNet.Graphics.Primitives.Box objects, and I am trying to get them to move using this code: paddle.Location.Y -= 2; This would be done whenever the up arrow is hit. It gives an error on compile, saying "Cannot modify the return value of 'SdlDotNet.Graphics.Primitives.Box.Location' because it is not a variable." So I tried this code to try to figure out what was going wrong (Location is a Point property, by the way): Point testPoint = new Point(0,0); testPoint.Y -= 2; It compiled fine. Why doesn't the first code work?