EyeshotCollection<T>.Find Method

Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
Public Function Find( _ 
ByVal match As Predicate(Of T) _ 
) As T
This language is not supported or no code example is available.
public T Find( 
Predicate<T> match 
)
This language is not supported or no code example is available.

Parameters

match
Predicate<T>

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

Return Value

T

The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T.

Exception type Condition

ArgumentNullException

match is null.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition