Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

ListBase<(Of <(<'T>)>)>..::..FindIndex Method (Int32, Int32, Predicate<(Of <(<'T>)>)>)

Finds the index of the first item, in the range of count items starting from index, that satisfies the condition defined by predicate. If no item matches the condition, -1 is returned.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public virtual int FindIndex(
	int index,
	int count,
	Predicate<T> predicate
)
Public Overridable Function FindIndex ( _
	index As Integer, _
	count As Integer, _
	predicate As Predicate(Of T) _
) As Integer
public:
virtual int^ FindIndex(
	int^ index, 
	int^ count, 
	Predicate<T>^ predicate
)

Parameters

index
Type: Int32
The starting index of the range to check.
count
Type: Int32
The number of items in range to check.
predicate
Type: Predicate<(Of <(<'T>)>)>
A delegate that defined the condition to check for.

Return Value

The index of the first item in the given range that satisfies the condition predicate. If no item satisfies that condition, -1 is returned.