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

定义

创建一个不可变排序集,其中包含同时存在于此集和指定集内的元素。Creates an immutable sorted set that contains elements that exist both in this set and in the specified set.

public:
 System::Collections::Immutable::ImmutableSortedSet<T> ^ Intersect(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.ImmutableSortedSet<T> Intersect (System.Collections.Generic.IEnumerable<T> other);
member this.Intersect : seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function Intersect (other As IEnumerable(Of T)) As ImmutableSortedSet(Of T)

参数

other
IEnumerable<T>

要与此集相交的集。The set to intersect with this one.

返回

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

注解

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于