I am stuck on how to take a large collection of 2500 or more records in a LIST and process 20 records at a time until all of them are processed.
LIST<MyRecords> newRecords = object.getNewRecordsToProcecss();
if (newRecords.Count > 0)
{
// loop and process 20 at a time
}
I did google this but not sure how to implement linq split.
I am stuck. I can't think of the logic to process into smaller batches. Is there a way in LINQ or something.
Any help is appreciated. Thanks