I have a List<string> , and I want to take groups of 5 elements from it. There are no keys or anything simple to group ... but it will always be a multiple of 5.
eg.
{"A","16","49","FRED","AD","17","17","17","FRED","8","B","22","22","107","64"}
Take the groups:
"A","16","49","FRED","AD" "17","17","17","FRED","8" "B","22","22","107","64"
but I canโt decide an easy way to do it!
Pretty sure that this can be done with an enum and Take (5) ...
source share