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

 

Searches the array for the specified item.

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

public:
int IndexOf(
	T item,
	int startIndex
)

Parameters

item
Type: T

The item to search for.

startIndex
Type: System::Int32

The index at which to begin 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: