How can i update an element in collection instead of the reference
<p>I have a collection ProductSearchResults, below method intends to find a specific product in that collection and update it. I end up updating the object that points to the element of the collection instead of the actual element it self though(i think)</p>

<p>Can you please show me how to do this properly so that I update the actual product in the collection</p>

<p>Thanks</p>

<pre><code>public void UpdateProductInfo(ProductInfo product)
    {
        var productToUpdate = this.ProductSearchResults.Where(p =&gt; p.ID == product.ID).;

        if (productUpdate.Count() &gt; 0)
        {
            var toUpdate = productToUpdate.First&lt;ProductInfo&gt;();

            toUpdate = product;
        }
    }
</code></pre>
