Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Data;
- static class DataTableExtensions
- {
- public static void ForEveryDataRow(this DataTable dataTable, Action<DataRow> methodToPass)
- {
- foreach (DataRow dataRow in dataTable.Rows)
- {
- methodToPass(dataRow);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement