Method LastIndexOf
- Namespace
- GuildWars2.Collections
- Assembly
- GuildWars2.dll
LastIndexOf(T, int, int, IEqualityComparer<T>?)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the IImmutableList<T> that contains the specified number of elements and ends at the specified index.
public int LastIndexOf(T item, int index, int count, IEqualityComparer<T>? equalityComparer)
Parameters
itemTThe object to locate in the list. The value can be null for reference types.
indexintThe zero-based starting index of the search. 0 (zero) is valid in an empty list.
countintThe number of elements in the section to search.
equalityComparerIEqualityComparer<T>The equality comparer to match
item.