Returns an enumerator which can be used to iterate through the Queue.
[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 Queue.
This method can be overridden by a derived class.
The enumerator does not have exclusive access to the Queue; therefore, any changes made to the Queue may cause Current or MoveNext to throw an exception.
Removing objects from the enumerator will remove them from the Queue.
Queue Class | Queue Members | System.Collections Namespace | IEnumerator