FixedStackTPush(T, Boolean) Method

Inserts an object at the top of this FixedStackT.

Definition

Namespace: DevCase.Runtime.Collections
Assembly: 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
)

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.

Exceptions

OverflowException Any slot availiable.

See Also