public void PushAndClear(ref ValueLinkedQueue <T> queue) { if (queue.IsNotEmpty) { queue.PeekLast().Next = _first; _first = queue.Peek(); queue.Clear(); } }
public T Peek() { return(_queue.Peek().Value); }