public virtual void Enqueue(T item) { BackingQueue.Enqueue(item); if (BackingQueue.Count > MaxSize) { Dequeue(); } }
protected virtual T Dequeue() { return(BackingQueue.Dequeue()); }
public virtual void Enqueue(T item) { BackingQueue.Enqueue(item); if (BackingQueue.Count > MaxSize) { Dequeue(); } }
protected virtual T Dequeue() { return(BackingQueue.Dequeue()); }