Class GuardedEnumerable<T>

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


IEnumerable<T>, System.Collections.IEnumerable



Base of

GuardedCollection<T>, GuardedCollectionValue<T>, GuardedDictionary<K,V>, GuardedDirectedCollectionValue<T>, GuardedDirectedEnumerable<T>, GuardedIndexedSorted<T>, GuardedList<T>, GuardedQueue<T>, GuardedSequenced<T>, GuardedSorted<T>, GuardedSortedDictionary<K,V>

Constructor overview

GuardedEnumerable<T>(IEnumerable<T> enumerable)

Method overview

Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetEnumerator() ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Constructor details

GuardedEnumerable<T>(IEnumerable<T> enumerable) Wrap an enumerable in a read-only wrapper
enumerable:The enumerable to wrap

Method details

F System.Collections.Generic.IEnumerator<T> GetEnumerator() Get an enumerator from the wrapped enumerable
Returns:The enumerator (itself wrapped)