C5  2.4
The C5 Generic Collection Library for C# and CLI is a comprehensive collection library supporting lists, sets, bags, dictionaries, priority queues, (FIFO) queues, and (LIFO) stacks. C5 runs on .NET 3.5+, Silverlight 5, Windows Phone 8, Xamarin.iOS, Xamarin.Android, and Mono.
C5.IDirectedEnumerable< T > Interface Template Reference

A generic collection, that can be enumerated backwards. More...

Inheritance diagram for C5.IDirectedEnumerable< T >:
C5.GuardedDirectedEnumerable< T > C5.IDirectedCollectionValue< T > C5.ArrayBase< T >.Range C5.DirectedCollectionBase< T > C5.DirectedCollectionValueBase< T > C5.GuardedDirectedCollectionValue< T > C5.IQueue< T > C5.ISequenced< T > C5.IStack< T > C5.SequencedBase< T >

Public Member Functions

IDirectedEnumerable< T > Backwards ()
 Create a collection containing the same items as this collection, but whose enumerator will enumerate the items backwards. The new collection will become invalid if the original is modified. Method typically used as in More...
 

Properties

EnumerationDirection Direction [get]
 

Detailed Description

A generic collection, that can be enumerated backwards.

Member Function Documentation

Create a collection containing the same items as this collection, but whose enumerator will enumerate the items backwards. The new collection will become invalid if the original is modified. Method typically used as in

foreach (T x in coll.Backwards()) {...}

Returns
The backwards collection.

Implemented in C5.TreeBag< T >, C5.TreeSet< T >, C5.HashedLinkedList< T >, C5.LinkedList< T >, C5.ArrayBase< T >.Range, C5.ArrayBase< T >, C5.DirectedCollectionBase< T >, C5.GuardedSequenced< T >, C5.WrappedArray< T >, C5.DirectedCollectionValueBase< T >, C5.GuardedDirectedCollectionValue< T >, C5.CircularQueue< T >, C5.IDirectedCollectionValue< T >, and C5.GuardedDirectedEnumerable< T >.

Property Documentation

Forwards if same, else Backwards

The enumeration direction relative to the original collection.


The documentation for this interface was generated from the following file: