M_Cyjb_Collections_SetEqualityComparer_1_GetHashCode - CYJB/Cyjb GitHub Wiki

SetEqualityComparer(T).GetHashCode 方法 (IReadOnlySet(T))

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

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

语法

C#

public override int GetHashCode(
	IReadOnlySet<T> set
)

参数

 

set
Type: System.Collections.Generic.IReadOnlySet(T)
将为其返回哈希代码的集合。

返回值

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

实现

IEqualityComparer(T).GetHashCode(T)

Exceptions

 

异常 条件
ArgumentNullException setnull

参见

Reference

SetEqualityComparer(T) 类
GetHashCode 重载
Cyjb.Collections 命名空间

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