Click or drag to resize
OrderedBagTRemoveFirst Method
Removes the first item in the bag. This is also the smallest item in the bag.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public T RemoveFirst()

Return Value

Type: T
The item that was removed, which was the smallest item in the bag.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe bag is empty.
Remarks
RemoveFirst() takes time O(log N), where N is the number of items in the bag.
See Also