title: List.ForEach in vb.net - perplexing me
body: <p>Consider the following code example:</p>
  
  <pre><code>    TempList.ForEach(Function(obj)
          obj.Deleted = True
      End Function)
  </code></pre>
  
  <p>And this one:</p>
  
  <pre><code>    TempList.ForEach(Function(obj) obj.Deleted = True)
  </code></pre>
  
  <p>I would expect the results to be the same, however the second code example does NOT change the objects in the list TempList.</p>
  
  <p>This post is more to understand why...? Or at least get some help understanding why...</p>