CircularListTFindIndex(Int32, PredicateT) Method
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 range of elements in the
CircularListT that extends from the specified index to the last element.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public int FindIndex(
int index,
Predicate<T> match
)
Public Function FindIndex (
index As Integer,
match As Predicate(Of T)
) As Integer
public:
int FindIndex(
int index,
Predicate<T>^ match
)
member FindIndex :
index : int *
match : Predicate<'T> -> int
- index Int32
- The zero-based starting index of the search.
- match PredicateT
- A delegate that defines the conditions of the element to search for.
Int32The zero-based index of the first occurrence of an element that matches the conditions defined by
match, if found; otherwise, –1.
This method performs a linear search; therefore, this method is an O(n) operation.