Overlaps Method

SortedSet(Of T).Overlaps Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether the current SortedSet(Of T) object and a specified collection share common elements.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

'Declaration
Public Function Overlaps ( _
	other As IEnumerable(Of T) _
) As Boolean

Parameters

other
Type: System.Collections.Generic.IEnumerable(Of T)
The collection to compare to the current SortedSet(Of T) object.

Return Value

Type: System.Boolean
true if the SortedSet(Of T) object and other share at least one common element; otherwise, false.

Implements

ISet(Of T).Overlaps(IEnumerable(Of T))

ExceptionCondition
ArgumentNullException

other is Nothing.

Any duplicate elements in other are ignored.

This method is an O(n) operation, where n is the number of elements in other.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft