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>,其中包含符合條件的元素。

適用於