OrderedBagTViewLastIndexOf Method |
Get the last index of the given item in the view. The smallest item in the view has index 0,
the next smallest item has index 1, and the largest item has index Count-1.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic int LastIndexOf(
T item
)
public:
int LastIndexOf(
T item
)
Parameters
- item
- Type: T
The item to get the index of.
Return Value
Type:
Int32The index of the last item in the view equal to
item, or -1 if the item is not present
in the view.
RemarksFinding the index takes time O(log N), which N is the number of items in
the set.
See Also