Click here to Skip to main content
15,891,864 members
Articles / Programming Languages / C# 4.0

Implementing The TakeLast, TakeLastWhile, SkipLast, and SkipLastWhile LINQ operators

Rate me:
Please Sign up or sign in to vote.
4.12/5 (9 votes)
12 Dec 2010CPOL5 min read 27.7K   16  
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.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Paulo Morgado
Portugal Portugal

Comments and Discussions