title: .NET Fastest way to iterate through rows in a datatable?
body: <p>Which is generally fastest when reading/comparing row info from a DataTable?</p>
  
  <pre><code>'assume dt as datatable'
  
  'method 1'
  dim i as int32
  for i = 0 to dt.rows.count - 1
     ....
  next
  
  'method 2'
  dim row as datarow
  for each row in dt.rows
      ....
  next
  </code></pre>
  
  <p>And if there's a difference, in what circumstances does it pay to use one over the other? </p>
  
  <p>Thanks in advance for any guidance!</p>