ImmutableList<T>.Builder.Exists(Predicate<T>) 方法

定义

确定不可变列表是否包含与指定谓词定义的条件匹配的元素。

public:
 virtual bool Exists(Predicate<T> ^ match);
public:
 bool Exists(Predicate<T> ^ match);
public bool Exists(Predicate<T> match);
abstract member Exists : Predicate<'T> -> bool
override this.Exists : Predicate<'T> -> bool
member this.Exists : Predicate<'T> -> bool
Public Function Exists (match As Predicate(Of T)) As Boolean

参数

match
Predicate<T>

定义要搜索的元素条件的委托。

返回

true 如果不可变列表包含一个或多个与指定谓词定义的条件匹配的元素,否则,为 false.

适用于