Interface IQueue<T>
- Namespace
- Ecng.Collections
- Assembly
- Ecng.Collections.dll
Defines a generic queue interface for enqueueing, dequeueing, and peeking at items.
public interface IQueue<T>
Type Parameters
T
The type of elements in the queue.
- Extension Methods
Methods
Dequeue()
Removes and returns the item at the front of the queue.
T Dequeue()
Returns
- T
The item at the front of the queue.
Enqueue(T)
Adds an item to the back of the queue.
void Enqueue(T item)
Parameters
item
TThe item to add to the queue.
Peek()
Returns the item at the front of the queue without removing it.
T Peek()
Returns
- T
The item at the front of the queue.