ImmutableArrayExtensions.Where<T> 方法

定義

根據述詞篩選值序列。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ Where(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, bool> ^ predicate);
public static System.Collections.Generic.IEnumerable<T> Where<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,bool> predicate);
static member Where : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, bool> -> seq<'T>
<Extension()>
Public Function Where(Of T) (immutableArray As ImmutableArray(Of T), predicate As Func(Of T, Boolean)) As IEnumerable(Of T)

類型參數

T

集合所包含的元素類型。

參數

immutableArray
ImmutableArray<T>

陣列要過濾。

predicate
Func<T,Boolean>

篩選陣列內容時使用的條件。

傳回

包含符合條件元素的回傳 IEnumerable<T>

適用於