Friday, 9 August 2013

Split List into Sublist using Linq based on content of list

Split List into Sublist using Linq based on content of list

This is similar, but not quite what is being asked in this question
I have a list that I want to break into sublists, but the break occurs
based on the content of an entry and not a fixed size.
Original List = [ split,1,split,2,2,split,3,3,3 ]
becomes [split,1], [split,2,2], [split,3,3,3] or [1], [2,2], [3,3,3]

No comments:

Post a Comment