DelphiBasics
  Home  |  Delphi .net Home  |  System.Collections NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 
  ArrayList  Class 
  BitArray  Class 
  CaseInsensitiveComparer  Class 
  Comparer  Class 
  DictionaryEntry  Structure 
  HashTable  Class 
  ICollection  Interface 
  IComparer  Interface 
  IDictionary  Interface 
  IDictionaryEnumerator  Interface 
  IEnumerator  Interface 
  IList  Interface 
  Queue  Class 
  SortedList  Class 
  Stack  Class 
 System.Globalization
 System.IO

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 php Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders


 
 
  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
 
System.Array
System.Collections.ArrayList
System.Collections.BitArray
System.Collections.HashTable
System.Collections.Queue
System.Collections.SortedList
System.Collections.Stack

 Microsoft MSDN links
 
System.Collections
System.Collections.ienumerator
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page