System.Collections: Generic.IEnumerator<T>

 

Supporta un semplicissimo iteratore della collezione generica.
E’ l’interfaccia base per tutti gli enumeratori generici.

Implementazioni:

IEnumerator
IDisposable

Osservazioni:

Implementare questa interfaccia richiede l’implementazione della IEnumerator.
Ciò significa implementare i metodi MoveNext e Reset che non dipendono dal tipo dell’oggetto.
La proprietà Current è presente in entrambe le interfacce, generica e non.

Thread Safety:

Di default le collection implementate nel namespace System.Collections.Generic non sono sincronizzate.

posted @ mercoledì 1 luglio 2009 13.28

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 4 and 8 and type the answer here:
 

Live Comment Preview: