IImmutableSet<T>.Intersect(IEnumerable<T>) IImmutableSet<T>.Intersect(IEnumerable<T>) IImmutableSet<T>.Intersect(IEnumerable<T>) IImmutableSet<T>.Intersect(IEnumerable<T>) Method

定義

建立不可變的資料集,其中只包含存在於這個資料集和指定資料集中的項目。Creates an immutable set that contains only elements that exist in this set and the specified set.

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> IEnumerable<T> IEnumerable<T> IEnumerable<T>

要與目前 IImmutableSet<T> 比較的集合。The collection to compare to the current IImmutableSet<T>.

傳回

新的不可變資料集,其中包含同時存在於這兩個資料集中的項目。A new immutable set that contains elements that exist in both sets.

適用於