Implementing The TakeLast, TakeLastWhile, SkipLast And SkipLastWhile LINQ Operators
Some time ago, I needed to retrieve the last items of a sequence that satisfied some criteria and, looking at the operators available in the Enumerable class, I noticed that there wasn’t such an operator.
By Paulo Morgado •
Created on Wednesday, February 9, 2011
|