Szerkesztés

Megosztás a következőn keresztül:


ImmutableSortedSet<T>.IImmutableSet<T>.Intersect Method

Definition

Creates an immutable set that contains elements that exist in both this set and the specified set.

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Intersect(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Immutable::IImmutableSet<T>::Intersect;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Intersect (System.Collections.Generic.IEnumerable<T> other);
abstract member System.Collections.Immutable.IImmutableSet<T>.Intersect : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Intersect : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Function Intersect (other As IEnumerable(Of T)) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Intersect

Parameters

other
IEnumerable<T>

The collection to compare to the current set.

Returns

A new immutable set that contains any elements that exist in both sets.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ImmutableSortedSet<T> instance is cast to an IImmutableSet<T> interface.

System.Collections.Immutable NuGet package

About immutable collections and how to install

Applies to