Export (0) Print
Expand All

ImmutableList<T>.FindIndex Method (Predicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, 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 int FindIndex(
	Predicate<T> match
)

Parameters

match
Type: System.Predicate<T>

The delegate that defines the conditions of the element to search for.

Return Value

Type: System.Int32
The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, ?1.
Show:
© 2015 Microsoft