I have a list (simplified)
[Kind] [Name]
null E
null W
4 T
5 G
6 Q
null L
null V
7 K
2 Z
0 F
I need {E,L} -> Items where their Kind==null and the next Kind==null too
Assume that there is an ID that is increasing and in order.
Is this forward looking possible in Linq?
Like this?
Edit: Stealing @Jeff Marcado’s solution to implement an extension method similar to the above use but a bit cleaner and not making you deal with the index: