Assuming I have the following loop:
foreach (DataRow dr in table.rows) { ... }
How do I keep it from running more often than n times?