/// <summary> /// Provides an Enumerator over the elements in this Queue. /// </summary> /// The enumerator is a point-in-time snapshot, and the contents /// of the Queue may change after the enumerator is returned, unless /// the Queue is synchronized on before calling this method and until /// the enumerator is exhausted. /// <returns> /// An enumerator of the elements in this Queue. /// </returns> public virtual IEnumerator GetEnumerator() { return(ElementList.GetEnumerator()); }