M_Cyjb_Collections_DictionaryEqualityComparer_2_GetHashCode - CYJB/Cyjb GitHub Wiki

DictionaryEqualityComparer(TKey, TValue).GetHashCode 方法 (IReadOnlyDictionary(TKey, TValue))

返回指定对象的哈希代码,使用 MurmurHash3 的无序版本。

Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public override int GetHashCode(
	IReadOnlyDictionary<TKey, TValue> dict
)

参数

 

dict
Type: System.Collections.Generic.IReadOnlyDictionary(TKey, TValue)
将为其返回哈希代码的集合。

返回值

Type: Int32
指定集合的哈希代码。

实现

IEqualityComparer(T).GetHashCode(T)

Exceptions

 

异常 条件
ArgumentNullException dictnull

参见

Reference

DictionaryEqualityComparer(TKey, TValue) 类
GetHashCode 重载
Cyjb.Collections 命名空间

⚠️ **GitHub.com Fallback** ⚠️