ImmutableSortedSet<T>.IImmutableSet<T>.Intersect Método

Definição

Cria um conjunto imutável que contém elementos que existem em ambos: nesse conjunto e no conjunto especificado.

 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

Parâmetros

other
IEnumerable<T>

A coleção a ser comparada com o conjunto atual.

Retornos

Um novo conjunto imutável que contém quaisquer elementos que existam nos dois conjuntos.

Implementações

Comentários

Este membro é uma implementação do membro de interface explícita. Ele só pode ser usado quando a instância de ImmutableSortedSet<T> é convertida em uma interface de IImmutableSet<T>.

Pacote NuGet System.Collections.Imutable

Sobre coleções imutáveis e como instalar

Aplica-se a