Click or drag to resize
OrderedSetTIndexOf Method
Get the index of the given item in the sorted order. The smallest item has index 0, the next smallest item has index 1, and the largest item has index Count-1.

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

Parameters

item
Type: T
The item to get the index of.

Return Value

Type: Int32
The index of the item in the sorted set, or -1 if the item is not present in the set.
Remarks
Finding the index takes time O(log N), which N is the number of items in the set.
See Also