ImmutableArray<T>::LastIndexOf Method (T, Int32, Int32, IEqualityComparer<T>^)
Searches the array for the specified item; starting at the end of the array.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: virtual int LastIndexOf( T item, int startIndex, int count, IEqualityComparer<T>^ equalityComparer ) sealed
Parameters
- item
-
Type:
T
The item to search for.
- startIndex
-
Type:
System::Int32
The index at which to begin the search.
- count
-
Type:
System::Int32
The number of elements to search.
- equalityComparer
-
Type:
System.Collections.Generic::IEqualityComparer<T>^
The equality comparer to use in the search.
Return Value
Type: System::Int32The 0-based index into the array where the item was found; or -1 if it could not be found.
Show: