ImmutableList<T>.FindAll(Predicate<T>) 方法
定义
检索与指定谓词定义的条件匹配的所有元素。Retrieves all the elements that match the conditions defined by the specified predicate.
public:
virtual System::Collections::Immutable::ImmutableList<T> ^ FindAll(Predicate<T> ^ match);
public:
System::Collections::Immutable::ImmutableList<T> ^ FindAll(Predicate<T> ^ match);
public System.Collections.Immutable.ImmutableList<T> FindAll (Predicate<T> match);
abstract member FindAll : Predicate<'T> -> System.Collections.Immutable.ImmutableList<'T>
override this.FindAll : Predicate<'T> -> System.Collections.Immutable.ImmutableList<'T>
member this.FindAll : Predicate<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function FindAll (match As Predicate(Of T)) As ImmutableList(Of T)
参数
- match
- Predicate<T>
委托,用于定义要搜索的元素应满足的条件。The delegate that defines the conditions of the elements to search for.
返回
如果找到一个其中所有元素均与指定谓词定义的条件匹配的 不可变列表,则为该数组;否则为一个空不可变列表。An immutable list that contains all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty immutable list.