GenericExtensionsFindIndexT(IListT, 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
ListT that extends from the specified index to the last element.
Namespace: DHI.Mike1D.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public static int FindIndex<T>(
this IList<T> source,
int startIndex,
Predicate<T> match
)
- source IListT
- IList to search
- startIndex Int32
- The zero-based starting index of the search.
- match PredicateT
- The PredicateT delegate that defines the conditions of the element to search for.
- T
[Missing <typeparam name="T"/> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.FindIndex``1(System.Collections.Generic.IList{``0},System.Int32,System.Predicate{``0})"]
Int32The zero-based index of the first occurrence of an element that matches the conditions defined by
match, if found; otherwise, –1.In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).