Skip to content

Methods_T_Cyjb_Collections_ObjectModel_ReadOnlyCollectionBase_1

CYJB edited this page Oct 20, 2022 · 2 revisions

ReadOnlyCollectionBase(T) 方法

The ReadOnlyCollectionBase(T) generic type exposes the following members.

方法

 

名称 说明
公共方法 Contains 确定当前集合是否包含指定对象。
公共方法 CopyTo 从特定的 Array 索引处开始,将当前集合 的元素复制到一个 Array 中。
公共方法 Equals Determines whether the specified object is equal to the current object. (继承自 Object。)
受保护的方法 Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。)
公共方法 GetEnumerator 返回一个循环访问集合的枚举器。
公共方法 GetHashCode Serves as the default hash function. (继承自 Object。)
受保护的方法 GetSyncRoot 获取一个可用于同步对当前集合的访问的对象。
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
受保护的方法 MemberwiseClone Creates a shallow copy of the current Object. (继承自 Object。)
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
  Back to Top

扩展方法

 

名称 说明
公共扩展器方法 AddRange(T) 将指定集合的元素添加到当前集合中。 (由 CollectionUtil 定义。)
公共扩展器方法 AsReadOnly(T) 返回当前集合的只读包装。 (由 CollectionUtil 定义。)
公共扩展器方法 IsDistinct(T) 判断序列中是否不包含重复元素。 (由 EnumerableUtil 定义。)
  Back to Top

参见

Reference

ReadOnlyCollectionBase(T) 类
Cyjb.Collections.ObjectModel 命名空间

Clone this wiki locally