QueueExtensionsEnqueueRangeT Method
Adds a range of objects in the incoming order to the end of the source QueueT.
Namespace: DevCase.Extensions.QueueExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void EnqueueRange<T>(
this ref Queue<T> sender,
T[] items
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub EnqueueRange(Of T) (
ByRef sender As Queue(Of T),
items As T()
)
Dim sender As Queue(Of T)
Dim items As T()
sender.EnqueueRange(items)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static void EnqueueRange(
Queue<T>^% sender,
array<T>^ items
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member EnqueueRange :
sender : Queue<'T> byref *
items : 'T[] -> unit
No code example is currently available or this language may not be supported.
- sender QueueT
-
The source QueueT.
- items T
-
The items to enqueue.
- T
-
The type.
In Visual Basic and C#, you can call this method as an instance method on any object of type
QueueT. 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).
This is a code example.
No code example is currently available or this language may not be supported.
Dim myQueue As New Queue(Of String)
myQueue.EnqueueRange({"T", "E", "S", "T"})
Do Until myQueue.Count = 0
Console.WriteLine(myStack.Dequeue)
Loop
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.