IEnumerator and index of current value

  • Thread starter Thread starter Fernando Rodríguez
  • Start date Start date
F

Fernando Rodríguez

Hi,

With Current I can get the current value of an IEnumerator, but how can I get
the index in the collection of the current value?

Thanks
 
Fernando,

Unless the item itself knows its position, you won't be able to get
this. You will have to keep track of the position of the items yourself.

Hope this helps.
 
Back
Top