Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedSet<(Of <(<'T>)>)>..::..RemoveFirst Method

Removes the first item in the set. This is also the smallest item in the set.

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

Syntax


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

Return Value

The item that was removed, which was the smallest item in the set.

Exceptions


ExceptionCondition
InvalidOperationExceptionThe set is empty.

Remarks


RemoveFirst() takes time O(log N), where N is the number of items in the set.