Returns an IEnumerator for the one-dimensional Array.
[Visual Basic] 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 one-dimensional Array.
Exception Type | Condition |
---|---|
NotSupportedException | The Array is multidimensional. |
This method can be overridden by a derived class.
The enumerator does not have exclusive access to the Array; therefore, any changes made to the Array may cause Current or MoveNext to throw an exception.
Removing objects from the enumerator will remove them from the Array.