title: Merge and Update Two Lists in C#
body: <p>I have two <code>List&lt;T&gt;</code> objects:</p>
  
  <p>For example:</p>
  
  <p><strong>List 1:</strong><br>
  ID, Value where Id is populated and value is blank and it contains say IDs from 1 to 10.<br>
  1,""<br>
  2,""<br>
  ...<br>
  10,""</p>
  
  <p><strong>List 2:</strong><br>
  ID, Value and other attributes all filled with values but this list is a subset of List 1 in terms of IDs. (e.g only 3 items)<br>
  2,67<br>
  4,90<br>
  5,98  </p>
  
  <p>What I want is a merged list 1, but with updated values. Does anyone have any good extension method which will do this or any elegent code to perform this operation. The final list should be:</p>
  
  <p>ID, Value<br>
  1,""<br>
  2,67 //value from list 2<br>
  3,""<br>
  4,90<br>
  5,98<br>
  6,""<br>
  ...<br>
  10,""  </p>