Interface IDirectedEnumerable<T>

A generic collection, that can be enumerated backwards.


IEnumerable<T>, System.Collections.IEnumerable

Implemented by

ArrayBase<T>, ArrayBase<T>.Range, ArrayList<T>, CircularQueue<T>, DirectedCollectionBase<T>, DirectedCollectionValueBase<T>, GuardedDirectedCollectionValue<T>, GuardedDirectedEnumerable<T>, GuardedIndexedSorted<T>, GuardedList<T>, GuardedQueue<T>, GuardedSequenced<T>, GuardedSorted<T>, HashedArrayList<T>, HashedLinkedList<T>, LinkedList<T>, SequencedBase<T>, SortedArray<T>, TreeBag<T>, TreeSet<T>, WrappedArray<T>


IDirectedCollectionValue<T>, IIndexed<T>, IIndexedSorted<T>, IList<T>, IPersistentSorted<T>, IQueue<T>, ISequenced<T>, ISorted<T>, IStack<T>

Property overview


Method overview


Property details

A EnumerationDirection DirectionAccess: Read-Only

Value:The enumeration direction relative to the original collection.

Forwards if same, else Backwards

Method details

A 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 foreach (T x in coll.Backwards()) {...}
Returns:The backwards collection.