Skip to main content

DXCollectionBase<T>.Find(Predicate<T>) Method

Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire DXCollectionBase<T>.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public T Find(
    Predicate<T> match
)

Parameters

Name Type Description
match Predicate<T>

The Predicate<T> delegate that defines the conditions of the element to search for.

Returns

Type Description
T

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

See Also