title: C# List<T> lambda Find then Modify elements
body: <p>How would I go about doing this with a List using lambda</p>
  
  <pre><code>List&lt;Foo&gt; list....// create and add a bunch of Foo
  int seconds = 100;
  
  list.FindAll(x=&gt;(x.Seconds == 0).Seconds = seconds) // yes I know that wont work...
  </code></pre>
  
  <p>In other words,  find all of the foo objects that Seconds == 0 and change the value to my local variable...</p>
  
  <p>I don't want to loop the list...I am sure there is a way to do this with a simple lambda method...</p>
  
  <p>Any help appreciated</p>
  
  <p>Oneway</p>