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

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

Inheritance diagram for C5.GuardedEnumerator< T >:

Public Member Functions

 GuardedEnumerator (SCG.IEnumerator< T > enumerator)
 Create a wrapper around a generic enumerator More...
 
bool MoveNext ()
 Move wrapped enumerator to next item, or the first item if this is the first call to MoveNext. More...
 
void Dispose ()
 Dispose wrapped enumerator. More...
 

Properties

Current [get]
 Undefined if enumerator is not valid (MoveNext hash been called returning true) More...
 

Detailed Description

A read-only wrapper class for a generic enumerator

Constructor & Destructor Documentation

C5.GuardedEnumerator< T >.GuardedEnumerator ( SCG.IEnumerator< T >  enumerator)

Create a wrapper around a generic enumerator

Parameters
enumeratorThe enumerator to wrap

Member Function Documentation

void C5.GuardedEnumerator< T >.Dispose ( )

Dispose wrapped enumerator.

bool C5.GuardedEnumerator< T >.MoveNext ( )

Move wrapped enumerator to next item, or the first item if this is the first call to MoveNext.

Returns
True if enumerator is valid now

Property Documentation

T C5.GuardedEnumerator< T >.Current
get

Undefined if enumerator is not valid (MoveNext hash been called returning true)

The current item of the wrapped enumerator.


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