IImmutableSet<T>.Intersect(IEnumerable<T>) 方法

定義

建立不可變的資料集,其中只包含存在於這個資料集和指定資料集中的項目。

public:
 System::Collections::Immutable::IImmutableSet<T> ^ Intersect(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.IImmutableSet<T> Intersect (System.Collections.Generic.IEnumerable<T> other);
abstract member Intersect : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Public Function Intersect (other As IEnumerable(Of T)) As IImmutableSet(Of T)

參數

other
IEnumerable<T>

要與目前 IImmutableSet<T> 比較的集合。

傳回

新的不可變資料集,其中包含同時存在於這兩個資料集中的項目。

適用於