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

定义

创建一个不可变集,其中只包含存在于此集和指定集内的元素。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>

要与当前 IImmutableSet<T> 进行比较的集合。The collection to compare to the current IImmutableSet<T>.

返回

一个新的不可变集,其中包含同时存在于两个集内的元素。A new immutable set that contains elements that exist in both sets.

适用于