ISet<T>.IntersectWith(IEnumerable<T>) Metoda

Definicja

Modyfikuje bieżący zestaw tak, aby zawierał tylko elementy, które znajdują się również w określonej kolekcji.

public:
 void IntersectWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);
abstract member IntersectWith : seq<'T> -> unit
Public Sub IntersectWith (other As IEnumerable(Of T))

Parametry

other
IEnumerable<T>

Kolekcja do porównania z bieżącym zestawem.

Wyjątki

other to null.

Uwagi

Ta metoda ignoruje wszelkie zduplikowane elementy w pliku other.

Dotyczy