ImmutableArray<T>::IndexOf Method (T, Int32, Int32, IEqualityComparer<T>^)

 

Searches the array for the specified item.

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

public:
virtual int IndexOf(
	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::Int32

The zero-based index position of the item if it is found, or -1 if it is not.

Return to top
Show: