Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property IComparer<T>^ Comparer {
	IComparer<T>^ 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:
© 2017 Microsoft