StackExtensionsReverseT Method
Inverts the order of the elements of the source StackT.
Namespace: DevCase.Extensions.StackExtensionsAssembly: 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 Stack<T> Reverse<T>(
this Stack<T> sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function Reverse(Of T) (
sender As Stack(Of T)
) As Stack(Of T)
Dim sender As Stack(Of T)
Dim returnValue As Stack(Of T)
returnValue = sender.Reverse()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static Stack<T>^ Reverse(
Stack<T>^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member Reverse :
sender : Stack<'T> -> Stack<'T>
No code example is currently available or this language may not be supported.
- sender StackT
-
The source StackT.
- T
StackT
The resulting
StackT.
In Visual Basic and C#, you can call this method as an instance method on any object of type
StackT. 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 myStack As New Stack(Of String)
With myStack
.Push("T")
.Push("E")
.Push("S")
.Push("T")
End With
myStack = myStack.Reverse
Do Until myStack.Count = 0
Console.WriteLine(myStack.Pop)
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.