SortedSet<T>.Comparer Property

.NET Framework (current version)
 

Gets the IComparer<T> object that is used to order the values in the SortedSet<T>.

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

public IComparer<T> Comparer { get; }

Property Value

Type: System.Collections.Generic.IComparer<T>

The comparer that is used to order the values in the SortedSet<T>.

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: