C# Update a List from Another List
<p>I have 2 <code>List&lt;object&gt;</code>. The first one, lets call it ListA is more like a complete list and the second one ListB is a modified list. Now what I want to do is to modify ListA with ListB. Is this doable and how can I do it. This is what I have so far but doesn't work:</p>

<pre><code>var ListB = _repository.Get(m =&gt; m.Approved == true).ToList();
foreach (var x in ListB)
{
  ListA.Where(d =&gt; d.Name == x.Name).First() = x;
}

return ListA;
</code></pre>

<p>EDIT: Visual Presentation to describe what 'modify' means in my situation</p>

<pre><code>ListA
Id     Name      Age
1     John       14
2     Mark       15
3     Luke       13
4     Matthew    18

ListB
Id     Name      Age
2     Mark       0
4     Matthew    99
</code></pre>

<p>After 'modifying' it, ListA should look like:</p>

<pre><code>ListA
Id     Name      Age
1     John       14
2     Mark       0
3     Luke       13
4     Matthew    99
</code></pre>