Język

SortedSet<T>.Overlaps(IEnumerable<T>) Metoda

Definicja

Określa, czy bieżący SortedSet<T> obiekt i określona kolekcja mają wspólne elementy.

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

Parametry

other
IEnumerable<T>

Kolekcja do porównania z bieżącym SortedSet<T> obiektem.

Zwraca

truejeśli obiekt i współużytkuje SortedSet<T> co najmniej jeden wspólny element; w przeciwnym razie other.false

Implementuje

Wyjątki

Parametr other ma wartość null.

Uwagi

Wszystkie zduplikowane elementy w programie other są ignorowane.

Ta metoda jest operacjąO(n log m), gdzie m jest Count i n jest liczbą elementów w .other

Dotyczy