Returns an enumerator for the entire ArrayList.
[Visual Basic] Overloads Overridable Public Function GetEnumerator() As IEnumerator [C#] public virtual IEnumerator GetEnumerator(); [C++] public: virtual IEnumerator* GetEnumerator(); [JScript] public function GetEnumerator() : IEnumerator;
An IEnumerator for the entire ArrayList.
This method can be overridden by a derived class.
The enumerator does not have exclusive access to the ArrayList; therefore, any changes made to the list may cause Current or MoveNext to throw an exception.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.GetEnumerator Overload List | IEnumerator