System.Collections.IEnumerator

supports a simple iteration over a non-generic collection
This allows you to implement a non-standard way of enumerating something, ie returning its elements one-by-one


Methods - MoveNext - sets Current to the next element. If MoveNext passes the end of the collection, the enumerator is positioned after the last element and MoveNext returns false
Methods - Reset - sets the enumerator before the first element
Properties - Current - Throws an exception if MoveNext returns false







© 2017 Better Solutions Limited. All Rights Reserved. © 2017 Better Solutions Limited

Top

PrevNext