7
Answers

IEnumerator

Marco

Marco

17y
2.1k
1
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)