Επεξεργασία

Κοινή χρήση μέσω


IImmutableSet<T>.Intersect(IEnumerable<T>) Method

Definition

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)

Parameters

other
IEnumerable<T>

The collection to compare to the current IImmutableSet<T>.

Returns

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

Applies to