Click or drag to resize

FifoQueueTPeek Method

Returns the object at the beginning of the FifoQueue{T} without removing it.

Namespace:  DHI.Mike1D.Generic.Collections
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public T Peek()

Return Value

Type: T
The object at the beginning of the FifoQueue{T}.
Remarks

This method is similar to the Dequeue method, but Peek does not modify the FifoQueue{T}.

If type T is a reference type, null can be added to the FifoQueue{T} as a value.

This method is an O(1) operation.

See Also