HashSet<T>::Comparer Property

 

Gets the IEqualityComparer<T> object that is used to determine equality for the values in the set.

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

public:
property IEqualityComparer<T>^ Comparer {
	IEqualityComparer<T>^ get();
}

Property Value

Type: System.Collections.Generic::IEqualityComparer<T>^

The IEqualityComparer<T> object that is used to determine equality for the values in the set.

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

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