Class GuardedDirectedEnumerable<T>

A read-only wrapper for a generic directed enumerable This is mainly interesting as a base of other guard classes

Implements

IEnumerable<T>, System.Collections.IEnumerable, IDirectedEnumerable<T>

Bases

object, GuardedEnumerable<T>

Property overview

Direction

Constructor overview

GuardedDirectedEnumerable<T>(IDirectedEnumerable<T> directedenumerable)

Method overview

Backwards() ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetEnumerator(), Inherited from GuardedEnumerable<T> ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Property details

F EnumerationDirection DirectionAccess: Read-Only

Value:The enumeration direction relative to the original collection.

Forwards if same, else Backwards

Constructor details

GuardedDirectedEnumerable<T>(IDirectedEnumerable<T> directedenumerable) Wrap a directed enumerable in a read-only wrapper
Parameters:
directedenumerable:the collection to wrap

Method details

F IDirectedEnumerable<T> Backwards() Get a enumerable that enumerates the wrapped collection in the opposite direction
Returns:The mirrored enumerable