ImmutableList<T>.Find(Predicate<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire immutable list.
public:
virtual T Find(Predicate<T> ^ match);
public:
T Find(Predicate<T> ^ match);
public T Find (Predicate<T> match);
public T? Find (Predicate<T> match);
abstract member Find : Predicate<'T> -> 'T
override this.Find : Predicate<'T> -> 'T
member this.Find : Predicate<'T> -> 'T
Public Function Find (match As Predicate(Of T)) As T
Parameters
- match
- Predicate<T>
The delegate that defines the conditions of the element to search for.
Returns
T
The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T
.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.