ISet<T>.Overlaps(IEnumerable<T>) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.