QueueExtensionsDequeueT Method
Removes and returns the specified amount of objects from the beginning of the 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 T[] Dequeue<T>(
this Queue<T> sender,
int amount
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function Dequeue(Of T) (
sender As Queue(Of T),
amount As Integer
) As T()
Dim sender As Queue(Of T)
Dim amount As Integer
Dim returnValue As T()
returnValue = sender.Dequeue(amount)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static array<T>^ Dequeue(
Queue<T>^ sender,
int amount
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member Dequeue :
sender : Queue<'T> *
amount : int -> 'T[]
No code example is currently available or this language may not be supported.
- sender QueueT
-
The source QueueT.
- amount Int32
-
The amount of items to pop.
- T
-
The type.
T
The objects removed from the beginning of the
QueueT.
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.Enqueue("1")
myQueue.Enqueue("2")
myQueue.Enqueue("3")
Dim items As String() = myQueue.Dequeue(3)
MsgBox(String.Join(",", items))
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.
ArgumentOutOfRangeException
|
amount
|