title: Cannot modify the return value because it is not a variable
body: <p>I have a class called <code>BaseRobot</code>:</p>
  
  <pre><code>  var robot2 = new BaseRobot(0, 0, 0);
    private Point mHome;
    public Point Home
    {
        get { return mHome; }
    }
  </code></pre>
  
  <p>That is where the original home is created, I am wanting to create a new home in the <code>program.cs</code>. I have the following code but it does not work, it is coming up with an error saying </p>
  
  <blockquote>
    <p>Cannot modify the return value becasue it is not a variable.</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>     robot2.Home.X = 1
       robot2.Home.Y = 5;
  
              {
  
                  Console.WriteLine("===New robot at specified home position===");
                  StringBuilder ab = new StringBuilder();
                  ab.AppendFormat("Robot#2 has home at &lt;{0},{0}&gt;.\r\n ", robot2.Home.X, robot2.Home.Y);
                  ab.AppendFormat("It is facing {0} ", robot2.Orientation);
                  ab.AppendFormat("and is currently at &lt;{0},{0}&gt;.\r\n", robot2.Position.X, robot2.Position.Y);
                  Console.WriteLine(ab.ToString());
              }
  </code></pre>
  
  <p>How do you assign new values to x and Y?</p>