for (int recepient = 0; recepient < dtRecepients.Rows.Count; recepient++) { }
n
int loops = n / 500; int spare = n % 500;
spare
n=2100 => spare=100
int total = dtRecepients.Rows.Count; int iterations = total/500; for (int recepient = 1; recepient <= iterations; recepient++) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)