title: Assigning values inside a LINQ Select?
body: <p>I have the following query:</p>
  
  <pre><code>drivers.Select(d =&gt; { d.id = 0; d.updated = DateTime.Now; return d; }).ToList();
  </code></pre>
  
  <p>drivers is a List which comes in with different id's and updated values, so I am changing the values in the Select, but is the proper way to do it.  I already know that I am not reassigning drivers to drivers because Resharper complains about it, so I guess it would be better if it was:</p>
  
  <pre><code>drivers = drivers.Select(d =&gt; { d.id = 0; d.updated = DateTime.Now; return d; }).ToList();
  </code></pre>
  
  <p>but is this still the way someone should assign new values to each element in the drivers List?</p>