ImmutableHashSet<T>.IImmutableSet<T>.Intersect 方法

定義

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

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Intersect(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Immutable::IImmutableSet<T>::Intersect;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Intersect (System.Collections.Generic.IEnumerable<T> other);
abstract member System.Collections.Immutable.IImmutableSet<T>.Intersect : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Intersect : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Function Intersect (other As IEnumerable(Of T)) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Intersect

參數

other
IEnumerable<T>

要與目前資料組比較的集合。

傳回

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

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableHashSet<T> 執行個體轉換成 IImmutableSet<T> 介面時,才能使用這個成員。

適用於