17 using System.Collections.Generic;
26 private readonly T _head;
27 private readonly Queue<T> _queue;
39 : this((IEnumerable<T>)items)
49 _queue =
new Queue<T>();
52 foreach (var item
in items)
69 var item = _queue.Dequeue();
70 if (item.Equals(_head))
84 if (handler !=
null) handler(
this, EventArgs.Empty);