QueueExtensionsReverseT Method
Inverts the order of the elements 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 Queue<T> Reverse<T>(
this Queue<T> sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function Reverse(Of T) (
sender As Queue(Of T)
) As Queue(Of T)
Dim sender As Queue(Of T)
Dim returnValue As Queue(Of T)
returnValue = sender.Reverse()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static Queue<T>^ Reverse(
Queue<T>^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member Reverse :
sender : Queue<'T> -> Queue<'T>
No code example is currently available or this language may not be supported.
- sender QueueT
-
The source QueueT.
- T
QueueT
The resulting
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)
With myQueue
.Enqueue("T")
.Enqueue("E")
.Enqueue("S")
.Enqueue("T")
End With
myQueue = myQueue.Reverse
Do Until myQueue.Count = 0
Console.WriteLine(myQueue.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.