7
Reply

IEnumerator

Marco

Marco

Sep 16 2007 2:37 PM
2.1k
hello,
I need to do something like this:
class myClass {
    string name;
}
List <myClass> l = new List<myClass>();
l.getEnumerator();
foreach (; l.movenext(); ) {
   print ( l.Current.name);
}

How to use IEnumerator to access the fields of the classes?
thanks.

Answers (7)