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

HashSet<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<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 IEqualityComparer<T> Comparer { 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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft