Hello!
Interface IEnumerable consist of method GetEnumerator() which will return an
object of type IEnumerator.
Now to my question will every object that GetEnumerator return implement
Current, MoveNext and Reset.
I mean in this case I don't have to implement these three methods because
they are already accessible in the object that is returned from
GetEnumerator.
Is this correct understood ?
//Tony
Interface IEnumerable consist of method GetEnumerator() which will return an
object of type IEnumerator.
Now to my question will every object that GetEnumerator return implement
Current, MoveNext and Reset.
I mean in this case I don't have to implement these three methods because
they are already accessible in the object that is returned from
GetEnumerator.
Is this correct understood ?
//Tony
Comment