ImmutableList<T>::FindLastIndex Method (Int32, Int32, Predicate<T>^)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: virtual int FindLastIndex( int startIndex, int count, Predicate<T>^ match ) sealed
Parameters
- startIndex
-
Type:
System::Int32
The zero-based starting index of the backward search.
- count
-
Type:
System::Int32
The number of elements in the section to search.
- match
-
Type:
System::Predicate<T>^
The delegate that defines the conditions of the element to search for.
Return Value
Type: System::Int32The zero-based index of the last occurrence of an element that matches the conditions defined by match, if found; otherwise, ?1.
Show: