Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableList::LastIndexOf<T> Method (IImmutableList<T>^, T, IEqualityComparer<T>^)

 

Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename T>
[ExtensionAttribute]
static int LastIndexOf(
	IImmutableList<T>^ list,
	T item,
	IEqualityComparer<T>^ equalityComparer
)

Parameters

list
Type: System.Collections.Immutable::IImmutableList<T>^

The list to search.

item
Type: T

The object to locate in the Immutable list. The value can be null for reference types.

equalityComparer
Type: System.Collections.Generic::IEqualityComparer<T>^

The equality comparer to use in the search.

Return Value

Type: System::Int32

The zero-based index of the last occurrence of item within the entire the Immutable list, if found; otherwise, –1.

Type Parameters

T

The type of items in the list.

Return to top
Show:
© 2017 Microsoft