Add context to IEnumerable elements

added by Paul Wheeler
2/11/2015 2:25:25 PM

3 Kicks, 514 Views

Elements of an IEnumerable sequence do not know about the other elements. I often need to compare an element with a previous or next element. Sometimes I need other context like all the other elements, the previous elements or if an element is the last element. That is why I use an extension method that adds context to all elements.


0 comments