Summary
Enqueues the elements of the specified collection to the
Queue<T>
.
- Namespace
- StrideToolkit
.Collections - Containing Type
- CollectionExtensions
Syntax
public static void EnqueueRange<T>(this Queue<T> queue, IEnumerable<T> collection)
Type Parameters
Name | Description |
---|---|
T | The type of elements in the collection. |
Parameters
Name | Type | Description |
---|---|---|
queue | Queue |
The Queue<T> to add items to. |
collection | IEnumerable |
The collection whose elements should be added to the queue. It can contain elements that are , if type T is a reference type.
|
Return Value
Type | Description |
---|---|
void |