0

I am having a list which contains 243 strings. I want to split the list into several smaller lists containing 20 strings each. Obviously, the last list should have 3 strings. I want the format to be List>.

How do accomplish this with linq och lambda?

To the ones who cares: When I have my lists, i will use foreach on them to call an API with only so many string at a time.

Martin Nilsson
  • 459
  • 1
  • 5
  • 15

0 Answers0