How can I set object in list : <p>I have code:</p>

<pre><code>Foo f1 = new Foo();
Foo f2 = new Foo();

List&lt;Foo&gt; list = new List&lt;Foo&gt;() { f1 };

// ... 

Foo f = list[0];
f = f2; // &lt;===

Console.WriteLine((list[0] == f)); 
</code></pre>

<p>Last line display "false". But i want change 'list[0]' by changing 'f' variable (not list[0] directly) (line '&lt;==='). May be, i need use pointers (e.g. create new object in &amp;list[0] address)?</p>
