Comparer Property
Collapse the table of content
Expand the table of content

SortedSet(Of T).Comparer Property

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

Gets the IEqualityComparer(Of T) object that is used to determine equality for the values in the SortedSet(Of T).

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

'Declaration
Public ReadOnly Property Comparer As IComparer(Of T)

Property Value

Type: System.Collections.Generic.IComparer(Of T)
The comparer that is used to determine equality for the values in the SortedSet(Of T).

The returned comparer can be either the default comparer of the type for a SortedSet(Of T), or the comparer used for its constructor.

Retrieving the value of this property is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft