c# by reference or by value
<p>Let's say I have a list of objects and that I'm extracting and modifying an item from the list like this:</p>

<pre><code>List&lt;MyObject&gt; TheListOfObjects = new List&lt;MyObject&gt;();
MyObject TheObject = new MyObject();

TheListOfObjects = //some json deserialization result

TheObject = (from o in TheListOfObject
             where o.ID == SomeParameter
             select o).SingleOrDefault();

TheObject.SomeProperty = SomeValue;
</code></pre>

<p>When I write <code>TheObject.SomeProperty = SomeValue;</code> am I:</p>

<ol>
<li>modifying the item in the list and in which case I'm done or</li>
<li>modifying a new item and I must replace the original item in the list with the item I just modified.</li>
</ol>
