foreach loop iterates over Queue starting from the oldest item and ending with newest.
What if I need to start with newest and end with oldest (probably interrupting at some point as in most cases I just need to iterate over several newest items)?
i’m looking for straighforward and efficient solution. without recreating new objects.
You could use Linq’s
Reverse()function: