[]
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 ReadOnlyStructList<T>.
public int FindIndex(StructPredicate<T> match)
Public Function FindIndex(match As StructPredicate(Of T)) As Integer
Type | Name | Description |
---|---|---|
StructPredicate<T> | match | The StructPredicate<T> delegate that defines the conditions of the element to search for. |
Type | Description |
---|---|
int | The zero-based index of the first occurrence of an element that matches the conditions defined by |
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 ReadOnlyStructList<T> that extends from the specified index to the last element.
public int FindIndex(int startIndex, StructPredicate<T> match)
Public Function FindIndex(startIndex As Integer, match As StructPredicate(Of T)) As Integer
Type | Name | Description |
---|---|---|
int | startIndex | The zero-based starting index of the search. |
StructPredicate<T> | match | The StructPredicate<T> delegate that defines the conditions of the element to search for. |
Type | Description |
---|---|
int | The zero-based index of the first occurrence of an element that matches the conditions defined by |
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 ReadOnlyStructList<T> that starts at the specified index and contains the specified number of elements.
public int FindIndex(int startIndex, int count, StructPredicate<T> match)
Public Function FindIndex(startIndex As Integer, count As Integer, match As StructPredicate(Of T)) As Integer
Type | Name | Description |
---|---|---|
int | startIndex | The zero-based starting index of the search. |
int | count | The number of elements in the section to search. |
StructPredicate<T> | match | The StructPredicate<T> delegate that defines the conditions of the element to search for. |
Type | Description |
---|---|
int | The zero-based index of the first occurrence of an element that matches the conditions defined by |