Method Find
Find(Func<T, Boolean>, out T)
Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order.
Declaration
public virtual bool Find(Func<T, bool> predicate, out T item)
Parameters
Type | Name | Description |
---|---|---|
Func<T, System.Boolean> | predicate | A delegate (Func<, > with ) defining the predicate
|
T | item |
Returns
Type | Description |
---|---|
System.Boolean | True is such an item exists |