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.GuardedEnumerable< T > Class Template Reference

A read-only wrapper class for a generic enumerable More...

Inheritance diagram for C5.GuardedEnumerable< T >:
C5.GuardedCollectionValue< T > C5.GuardedDirectedEnumerable< T > C5.GuardedCollection< T > C5.GuardedDirectedCollectionValue< T > C5.GuardedSequenced< T > C5.GuardedQueue< T > C5.GuardedList< T > C5.GuardedSorted< T > C5.GuardedIndexedSorted< T >

Public Member Functions

 GuardedEnumerable (SCG.IEnumerable< T > enumerable)
 Wrap an enumerable in a read-only wrapper More...
 
SCG.IEnumerator< T > GetEnumerator ()
 Get an enumerator from the wrapped enumerable More...
 

Detailed Description

A read-only wrapper class for a generic enumerable

This is mainly interesting as a base of other guard classes

Constructor & Destructor Documentation

C5.GuardedEnumerable< T >.GuardedEnumerable ( SCG.IEnumerable< T >  enumerable)

Wrap an enumerable in a read-only wrapper

Parameters
enumerableThe enumerable to wrap

Member Function Documentation

SCG.IEnumerator<T> C5.GuardedEnumerable< T >.GetEnumerator ( )

Get an enumerator from the wrapped enumerable

Returns
The enumerator (itself wrapped)

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