FixedStackTPush(T, Boolean) Method
Namespace: DevCase.Runtime.CollectionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public void Push(
T item,
bool throwIfFullSlots = false
)
Public Sub Push (
item As T,
Optional throwIfFullSlots As Boolean = false
)
Dim instance As FixedStack
Dim item As T
Dim throwIfFullSlots As Boolean
instance.Push(item, throwIfFullSlots)
public:
void Push(
T item,
bool throwIfFullSlots = false
)
member Push :
item : 'T *
?throwIfFullSlots : bool
(* Defaults:
let _throwIfFullSlots = defaultArg throwIfFullSlots false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- item T
-
The object to push onto the stack.
The value can be null for reference types.
- throwIfFullSlots Boolean (Optional)
-
If , a OverflowException is thrown if there isn't any free slot to add the item.
If and there isn't any free slot to add the item, the bottom item on the stack is discarded.
OverflowException
|
Any slot availiable.
|