foreach (var row in table.Rows) { DoSomethingWith(row); }
Assuming that I\'m working with a standard System.Data.DataTable (which has
System.Data.DataTable
An implicit cast happens. Also note that an InvalidCastException can be thrown if the cast isn't possible.