CollectionExtensions.

EnqueueRange<T>(Queue<T>, IEnumerable<T>) Method

Summary

Enqueues the elements of the specified collection to the Queue<T>.

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<T> The Queue<T> to add items to.
collection IEnumerable<T> 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