Skip to content

M_Cyjb_UnorderedHashCode_Add__1_1

CYJB edited this page Mar 20, 2024 · 11 revisions

UnorderedHashCode.Add(T) 方法 (T, IEqualityComparer(T))

将指定值添加到无序哈希代码,指定提供哈希代码的方法。

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

语法

C#

public void Add<T>(
	T value,
	IEqualityComparer<T>? comparer
)

参数

 

value
Type: T
要添加到哈希代码的值。
comparer
Type: System.Collections.Generic.IEqualityComparer(T)
使用 IEqualityComparer(T) 计算哈希代码。

类型参数

 

T
要添加到无序哈希代码的值的类型。

参见

Reference

UnorderedHashCode 结构
Add 重载
Cyjb 命名空间

Clone this wiki locally