Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

Deque<(Of <(<'T>)>)>..::..GetAtFront Method

Retreives the item currently at the front of the Deque. The Deque is unchanged. This method is equivalent to deque[0] (except that a different exception is thrown).

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public T GetAtFront()
Public Function GetAtFront As T
public:
T GetAtFront()

Return Value

The item at the front of the Deque.

Exceptions


ExceptionCondition
InvalidOperationExceptionThe Deque is empty.

Remarks


Retreiving the item at the front of the Deque takes a small constant amount of time, regardless of how many items are in the Deque.