Marco

Marco

  • NA
  • 59
  • 0

IEnumerator

Sep 16 2007 2:37 PM
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)