ConcurrentHashSet<T>.Comparer - свойство

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

Definition

Пространство имён: Tessa.Platform.Collections
Сборка: Tessa (в Tessa.dll) Версия: 4.0.7
C#
public IEqualityComparer<T> Comparer { get; }

Значение свойства

IEqualityComparer<T>
The IEqualityComparer<T> generic interface implementation that is used to provide hash values and determine equality for the values in the current ConcurrentHashSet<T>.

Заметки

ConcurrentHashSet<T> requires an equality implementation to determine whether values are equal. You can specify an implementation of the IEqualityComparer<T> generic interface by using a constructor that accepts a comparer parameter; if you do not specify one, the default generic equality comparer Default is used.

См. также