Skip to content

T_Cyjb_Collections_ListEqualityComparer_1

CYJB edited this page Mar 20, 2024 · 13 revisions

ListEqualityComparer(T) 类

表示根据内容比较 IList(T) 集合的比较器。

继承层次

System.Object
  System.Collections.Generic.EqualityComparer(IList(T))
    Cyjb.Collections.ListEqualityComparer(T)
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public sealed class ListEqualityComparer<T> : EqualityComparer<IList<T>>

类型参数

 

T
要比较的列表元素的类型。
  The ListEqualityComparer(T) type exposes the following members.

构造函数

 

名称 说明
公共方法 ListEqualityComparer(T) 使用指定的元素比较器初始化 ListEqualityComparer(T) 类的新实例。
  Back to Top

属性

 

名称 说明
公共属性静态成员 Default 获取默认的相等比较器。
  Back to Top

方法

 

名称 说明
公共方法 Equals(Object) Determines whether the specified object is equal to the current object. (继承自 Object。)
公共方法 Equals(IList(T), IList(T)) 确定指定的对象是否相等。 (重写 EqualityComparer(T).Equals(T, T).)
公共方法 GetHashCode() Serves as the default hash function. (继承自 Object。)
公共方法 GetHashCode(IList(T)) 返回指定对象的哈希代码。 (重写 EqualityComparer(T).GetHashCode(T).)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
  Back to Top

参见

Reference

Cyjb.Collections 命名空间

Clone this wiki locally