Back to Devexpress

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

corelibraries-devexpress-dot-utils-dot-dxcollectionbase-1-dot-find-x28-system-dot-predicate-0-x29.md

latest1.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public T Find(
    Predicate<T> match
)
vb
Public Function Find(
    match As Predicate(Of T)
) As T

Parameters

NameTypeDescription
matchPredicate<T>

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

|

Returns

TypeDescription
T

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

|

See Also

DXCollectionBase<T> Class

DXCollectionBase<T> Members

DevExpress.Utils Namespace