|
|
System.Collections.IEnumerator Interface |
|
|
Description | |
|
Collections are classes that literally hold collections of data, such as lists, queues and stacks. IEnumerator defines the behaviour of a class that allows the items in a collection to be read (but not updated) in sequence.
The IEnumerator interface provides the following methods :
MoveNext | Position to the next item in the list (enumeration). This must be used when first using an IEnumerator, or after a Reset, since position is before the first item |
Reset | repositions to before the first item in the list (enumeration). |
A number of classes return a class that implements IEnumerator via the GetEnumerator method. |
|
Properties | | | Current | | Object | | The value of the item at the current position in the list (enumeration), or null if the list is Reset. |
| Delphi Basics links | | | |
Microsoft MSDN links | |
|
|
|
|
|
|
|
|