All C# extension methods for type queue-t
-
EnqueueAll
Enqueues all objects from an IEnumerable<T> to the specified queue.
-
EnqueueWithCapacity
Sometimes you may need a Queue<T> that, once it hits a capacity, dequeues items automatically to maintain a certain maximum. While it may be best to derive a new type from Queue<T>, this will get it done much more quickly. This is very useful for maintaining a rolling average or a "history" feature.