StackExtensionsPushRangeT Method
Inserts a range of objects in the incoming order at the top 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 void PushRange<T>(
this ref Stack<T> sender,
T[] items
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub PushRange(Of T) (
ByRef sender As Stack(Of T),
items As T()
)
Dim sender As Stack(Of T)
Dim items As T()
sender.PushRange(items)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static void PushRange(
Stack<T>^% sender,
array<T>^ items
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member PushRange :
sender : Stack<'T> byref *
items : 'T[] -> unit
No code example is currently available or this language may not be supported.
- sender StackT
-
The source StackT.
- items T
-
The items to push.
- T
-
The type.
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)
myStack.PushRange({"T", "E", "S", "T"})
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.