A
A.B.
Hi,
I have various lists I want to go through, at different paces and I
want to control that with a list of enumerators.
I have the following:
List<List<DataEntry>> mydata = new List<List<Data>>();
List<List<DataEntry>.Enumerator> myenums = news
List<List<Data>.Enumertor>();
I do
myenums.Add(mydata[0].GetEnumerator());
then
myenums[0].MoveNext();
well it seems that doesn't work... like myenums[0] is a temporary copy
of the enumerator... I don't know but when I do that, myenums[0]
desn't actually move.
e = myenums[0];
e.MoveNext();
works though, meaning e moves, but it doesn't change myenums[0]
( !?? )
Can someone explain me the rational here and a good way to do what I
am trying to achieve?
Thanks!
I have various lists I want to go through, at different paces and I
want to control that with a list of enumerators.
I have the following:
List<List<DataEntry>> mydata = new List<List<Data>>();
List<List<DataEntry>.Enumerator> myenums = news
List<List<Data>.Enumertor>();
I do
myenums.Add(mydata[0].GetEnumerator());
then
myenums[0].MoveNext();
well it seems that doesn't work... like myenums[0] is a temporary copy
of the enumerator... I don't know but when I do that, myenums[0]
desn't actually move.
e = myenums[0];
e.MoveNext();
works though, meaning e moves, but it doesn't change myenums[0]
( !?? )
Can someone explain me the rational here and a good way to do what I
am trying to achieve?
Thanks!