using Linq to partition data into arrays

Posted by user200295 on Stack Overflow See other posts from Stack Overflow or by user200295
Published on 2010-04-08T21:01:40Z Indexed on 2010/04/08 21:13 UTC
Read the original article Hit count: 302

Filed under:
|

I have an array of elements where the element has a Flagged boolean value.

1 flagged
2 not flagged
3 not flagged
4 flagged
5 not flagged
6 not flagged
7 not flagged
8 flagged
9 not flagged

I want to break it into arrays based on the flagged indicator

output >

array 1 {1,2,3}
array 2 {4,5,6,7}
array 3 {8,9}

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ