語言

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>的 。

傳回

一個新的不變集合,包含存在於兩個集合中的元素。

適用於