title: Does FirstOrDefault return a reference to the item in the collection or the value?
body: <p>Does FirstOrDefault return a reference to the item in the collection or the value of the item?</p>
  
  <pre><code>var obj = myCollection.FirstOrDefault(x =&gt; x.Param == "match condition");  
  if (obj != null)
  {
      obj  = newObjectOfCollectionType; //if found, replace with the changed record
  }
  </code></pre>
  
  <p>Will this code replace the object reference in the myCollection with the new object, or will it do nothing to myCollection?</p>