ImmutableSortedSet<T>.ISet<T>.IntersectWith 方法

定义

修改当前集,使该集仅包含也存在在指定集合中的元素。

 virtual void System.Collections.Generic.ISet<T>.IntersectWith(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Generic::ISet<T>::IntersectWith;
void ISet<T>.IntersectWith (System.Collections.Generic.IEnumerable<T> other);
abstract member System.Collections.Generic.ISet<T>.IntersectWith : seq<'T> -> unit
override this.System.Collections.Generic.ISet<T>.IntersectWith : seq<'T> -> unit
Sub IntersectWith (other As IEnumerable(Of T)) Implements ISet(Of T).IntersectWith

参数

other
IEnumerable<T>

要与当前集进行比较的集合。

实现

注解

此成员是显式接口成员的实现。 它只能在 ImmutableSortedSet<T> 实例被强制转换为 ISet<T> 接口时使用。

System.Collections.Immutable NuGet 包

关于不可变集合以及如何安装

适用于