Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

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

Returns the first item in the set: the item that would appear first if the set was enumerated. This is also the smallest item in the set.

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

Syntax


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

Return Value

The first item in the set.

Exceptions


ExceptionCondition
InvalidOperationExceptionThe set is empty.

Remarks


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