title: Update multiple values to object list in c#
body: <p>How to update multiple property of object in list?</p>
  
  <pre><code>foreach(emp e in emps){
      list1.Where(x =&gt; x.ID == e.ID &amp;&amp; x.Salary &lt; 5000).FirstOrDefault().Level = B;
      list1.Where(x =&gt; x.ID == e.ID &amp;&amp; x.Salary &lt; 5000).FirstOrDefault().Hike = e.Hike;
      list1.Where(x =&gt; x.ID == e.ID &amp;&amp; x.Salary &lt; 5000).FirstOrDefault().Salary = (e.Hike + 100)*e.Salary/100 ;
  }    
  </code></pre>
  
  <p>I dont want to use multiple in-line query for each field. Also it should update same single object.
  Note : e.ID is not unique key. list1 can contain duplicate Ids</p>