ISet<T>.Overlaps(IEnumerable<T>) Méthode

Définition

Détermine si l’ensemble actuel recoupe la collection spécifiée.

public:
 bool Overlaps(System::Collections::Generic::IEnumerable<T> ^ other);
public bool Overlaps (System.Collections.Generic.IEnumerable<T> other);
abstract member Overlaps : seq<'T> -> bool
Public Function Overlaps (other As IEnumerable(Of T)) As Boolean

Paramètres

other
IEnumerable<T>

Collection à comparer à l’ensemble actuel.

Retours

true si l’ensemble actuel et other partagent au moins un élément commun ; sinon, false.

Exceptions

other a la valeur null.

Remarques

Tous les éléments dupliqués dans other sont ignorés.

S’applique à