C#C
C#4y ago
BenMcLean

❔ Return groups of results using LINQ?

I'm iterating through a set of data with LINQ.
The data's broken up into sections, where there's a "1" in the "NewSection" column on the first row of a new section, otherwise there's a "0" in that column.
I want to make a function that returns an Enumerable of Enumerables of my data rows, where the inner enumerable is all the entries in each section.
How would I construct my loop for this?
Was this page helpful?