title: Is it safe to update a List<T> like this
body: <p>I have a list that I want to query then update, here's how it works:</p>
  
  <pre><code>List&lt;PingtreeNode&gt; nodes = new List&lt;PingtreeNode&gt;();
  ... add some nodes
  
  var activeNodes = nodes.Where(x =&gt; x.Status == PingtreeNodeStatus.Active);
  
  foreach(var n in activeNodes)
  {
    n.Status = PingtreeNodeStatus.Applied;
  }
  </code></pre>
  
  <p>I'm not sure if this is entirely safe because I'm filtering on Status, then updating Status based on the original query.</p>
  
  <p>Any advice appreciated</p>