ImmutableList<T>::IndexOf Method (T)

 

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

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

public:
virtual int IndexOf(
	T value
) sealed

Parameters

value
Type: T

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

Return Value

Type: System::Int32

The zero-based index of the first occurrence of value within the entire immutable list, if found; otherwise, ?1.

Return to top
Show: