FixedQueueTEnqueue(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 Enqueue(
T item,
bool throwIfFullSlots = false
)
Public Sub Enqueue (
item As T,
Optional throwIfFullSlots As Boolean = false
)
Dim instance As FixedQueue
Dim item As T
Dim throwIfFullSlots As Boolean
instance.Enqueue(item, throwIfFullSlots)
public:
void Enqueue(
T item,
bool throwIfFullSlots = false
)
member Enqueue :
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 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.
OverflowException
|
Any slot availiable.
|