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<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:
© 2017 Microsoft