Click or drag to resize
IEnumerableExtensionsToQueueT Method
Creates a Queue from a sequence. If the sequence is already a Queue, a new Queue is still created.

Namespace: Bio.Util
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public static Queue<T> ToQueue<T>(
	this IEnumerable<T> sequence
)

Parameters

sequence
Type: System.Collections.GenericIEnumerableT
the input sequence

Type Parameters

T
the type of elements of the sequence

Return Value

Type: QueueT
a Queue

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also