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> 进行比较的集合。

返回

IImmutableSet<T>

一个新的不可变集,其中包含同时存在于两个集内的元素。

适用于