FixedQueueTEnqueue(T, Boolean) Method

Adds an object to the end of this FixedQueueT.

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 Enqueue(
	T item,
	bool throwIfFullSlots = false
)

Parameters

item  T
The object to add to the queue.

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 last item on the queue is discarded.

Exceptions

OverflowException Any slot availiable.

See Also