I have this variable called tasks:
var tasks = new List<string>();
Right now tasks has a count of 81, but this could change down the road.
What I am trying to do is 3 loops of tasks getting 28 at a time like so:
@for (var i = 0; i < 28; i++)
{
}
@for (var i = 28; i < 56; i++)
{
}
@for (var i = 56; i < 81; i++)
{
}
I do not like that I hard coded the numbers, so my question is using tasks.Count
What would be the best way loop through an array getting 28 at a time?