T_Cyjb_Collections_DictionaryEqualityComparer_2 - CYJB/Cyjb GitHub Wiki
表示根据内容比较 IReadOnlyDictionary(TKey, TValue) 字典的比较器。
System.Object
System.Collections.Generic.EqualityComparer(IReadOnlyDictionary(TKey, TValue))
Cyjb.Collections.DictionaryEqualityComparer(TKey, TValue)
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public sealed class DictionaryEqualityComparer<TKey, TValue> : EqualityComparer<IReadOnlyDictionary<TKey, TValue>>
- TKey
- 要比较的字典键的类型。
- TValue
- 要比较的字典值的类型。
名称 | 说明 | |
---|---|---|
![]() |
Equals(Object) | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() |
Equals(IReadOnlyDictionary(TKey, TValue), IReadOnlyDictionary(TKey, TValue)) | 确定指定的对象是否相等。 (重写 EqualityComparer(T).Equals(T, T).) |
![]() |
GetHashCode() | Serves as the default hash function. (继承自 Object。) |
![]() |
GetHashCode(IReadOnlyDictionary(TKey, TValue)) | 返回指定对象的哈希代码,使用 MurmurHash3 的无序版本。 (重写 EqualityComparer(T).GetHashCode(T).) |
![]() |
GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() |
ToString | Returns a string that represents the current object. (继承自 Object。) |
名称 | 说明 | |
---|---|---|
![]() ![]() |
Default | 获取默认的相等比较器。 |