title: Change object in a list
body: <p>I have the following code:</p>
  
  <pre><code>List&lt;Foo&gt; test = new List&lt;Foo&gt;();
  test.Add(new Foo(2));
  List&lt;Foo&gt; test2 = new List&lt;Foo&gt;();
  test2.Add(test[0]);
  test2[0] = new Foo(3);
  </code></pre>
  
  <p>When I assign a new object to <code>test2[0]</code>, <code>test[0]</code> does <em>not</em> change. How can I change <code>test[0]</code> through <code>test2[0]</code>?</p>
  
  <p><strong>EDIT:</strong>  </p>
  
  <p>Ok, so I already have two objects. In the end I want to change the first object to be the second object.</p>
  
  <pre><code>Foo bar0 = new Foo(2);
  Foo bar1 = new Foo(3);
  List&lt;Foo&gt; test = new List&lt;Foo&gt;();
  test.Add(bar0);
  List&lt;Foo&gt; test2 = new List&lt;Foo&gt;();
  test2.Add(test[0]);
  // now what?
  </code></pre>