class myClass { string name;}List <myClass> l = new List<myClass>();l.getEnumerator();foreach (; l.movenext(); ) { print ( l.Current.name);}