IEnumerableExtensionsToQueueT Method |
Creates a Queue from a sequence. If the sequence is already a Queue, a new Queue is still created.
Namespace: Bio.UtilAssembly: 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
)
<ExtensionAttribute>
Public Shared Function ToQueue(Of T) (
sequence As IEnumerable(Of T)
) As Queue(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Queue<T>^ ToQueue(
IEnumerable<T>^ sequence
)
[<ExtensionAttribute>]
static member ToQueue :
sequence : IEnumerable<'T> -> Queue<'T>
Parameters
- sequence
- Type: System.Collections.GenericIEnumerableT
the input sequence
Type Parameters
- T
- the type of elements of the sequence
Return Value
Type:
QueueTa 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