語言

ImmutableHashSet<T>.KeyComparer 屬性

定義

取得 對象,這個物件用來取得索引鍵的哈希碼,並檢查不可變哈希集中的值是否相等。

public:
 property System::Collections::Generic::IEqualityComparer<T> ^ KeyComparer { System::Collections::Generic::IEqualityComparer<T> ^ get(); };
public System.Collections.Generic.IEqualityComparer<T> KeyComparer { get; }
member this.KeyComparer : System.Collections.Generic.IEqualityComparer<'T>
Public ReadOnly Property KeyComparer As IEqualityComparer(Of T)

屬性值

比較器用於取得金鑰的雜湊碼並檢查相等性。

適用於