AlgorithmsLastIndexOfT Method (IListT, T, IEqualityComparerT) |
Finds the index of the last item in a list equal to a given item. A passed
IEqualityComparer is used to determine equality.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static int LastIndexOf<T>(
IList<T> list,
T item,
IEqualityComparer<T> equalityComparer
)
public:
generic<typename T>
static int LastIndexOf(
IList<T>^ list,
T item,
IEqualityComparer<T>^ equalityComparer
)
Parameters
- list
- Type: System.Collections.GenericIListT
The list to search. - item
- Type: T
The item to search for. - equalityComparer
- Type: System.Collections.GenericIEqualityComparerT
The IEqualityComparer<T> used to compare items for equality. Only the Equals method will be called.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.LastIndexOf``1(System.Collections.Generic.IList{``0},``0,System.Collections.Generic.IEqualityComparer{``0})"]
Return Value
Type:
Int32The index of the last item equal to
item. -1 if no such item exists in the list.
See Also