I have a collection that looks like this:
IList<TQBase> = hq;
public class TQBase
{
public int i { get; set; }
public int q { get; set; }
}
The collection has over 300 items in it.
Now I need to create a collection of these collections such that:
h[0] = the first fifty elements of hq
h[1] = the next fifty elements of hq
...
h[n] = any remaining elements of hq
Can anyone suggest a way that I can create the second collection. Is this something that I could do with Linq or is there an easier way?