title: Converting a collection.foreach from c# to VB.Net
body: <p>In C# i just put the method in the parentheses that i want to run on each row of the collection, but it isn't working in VB.NET.</p>
  
  <p>ex:</p>
  
  <pre><code>SubSonic.PartCollection Parts;
  ...
  Parts.ForEach(TestMethod);
  </code></pre>
  
  <p>I've tried this in VB.Net, but it's not compiling, and i'm not quite sure what I'm missing.</p>
  
  <pre><code>Dim Parts as SubSonic.PartCollection
  ...
  parts.ForEach(TestMethod)
  </code></pre>
  
  <p>If i break it apart and do it manually it works:</p>
  
  <pre><code>for each p as SubSonic.Part in Parts
      TestMethod(p)
  next
  </code></pre>
  
  <p>I'm just trying to clean things up a little</p>
  
  <p>Thanks
  Tony W</p>