Methods_T_Cyjb_Collections_ObjectModel_ListBase_1 - CYJB/Cyjb GitHub Wiki

ListBase(T) 方法

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

方法

 

名称 说明
公共方法 Add 将指定对象添加到当前集合中。 (继承自 CollectionBase(T)。)
受保护的方法 AddItem 将指定对象添加到当前集合中。 (重写 CollectionBase(T).AddItem(T).)
公共方法 Clear 从当前集合中移除所有元素。 (继承自 CollectionBase(T)。)
公共方法 Contains 确定当前列表是否包含指定对象。 (重写 CollectionBase(T).Contains(T).)
公共方法 CopyTo 从特定的 Array 索引处开始,将当前集合 的元素复制到一个 Array 中。 (继承自 CollectionBase(T)。)
公共方法 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 返回一个循环访问集合的枚举器。 (继承自 CollectionBase(T)。)
公共方法 GetHashCode Serves as the default hash function. (继承自 Object。)
受保护的方法 GetItemAt 返回指定索引处的元素。
受保护的方法 GetSyncRoot 获取一个可用于同步对当前集合的访问的对象。 (继承自 CollectionBase(T)。)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 IndexOf 确定当前列表中指定对象的索引。
公共方法 Insert 将元素插入当前列表的指定索引处。
受保护的方法 InsertItem 将元素插入 ListBase(T) 的指定索引处。
受保护的方法 MemberwiseClone Creates a shallow copy of the current Object. (继承自 Object。)
公共方法 Remove 从当前列表中移除特定对象的第一个匹配项。 (重写 CollectionBase(T).Remove(T).)
公共方法 RemoveAt 移除当前列表中指定索引处的元素。
受保护的方法 RemoveItem 移除 ListBase(T) 的指定索引处的元素。
受保护的方法 SetItemAt 替换指定索引处的元素。
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
  Back to Top

扩展方法

 

名称 说明
公共扩展器方法 AddRange(T) 将指定集合的元素添加到当前集合中。 (由 CollectionUtil 定义。)
公共扩展器方法 AsReadOnly(T)() 已重载。 返回当前列表的只读包装。 (由 ListUtil 定义。)
公共扩展器方法 AsReadOnly(T)() 已重载。 返回当前集合的只读包装。 (由 CollectionUtil 定义。)
公共扩展器方法 BinarySearch(T)(T, IComparer(T)) 已重载。 在指定排序 IList(T) 中搜索特定元素。 (由 ListUtil 定义。)
公共扩展器方法 BinarySearch(T)(Int32, Int32, T, IComparer(T)) 已重载。 在排序 IList(T) 的某个元素范围中搜索值。 (由 ListUtil 定义。)
公共扩展器方法 BinarySearch(T, TResult)(TResult, Func(T, TResult), IComparer(TResult)) 已重载。 在整个排序 IList(T) 中搜索特定元素。 (由 ListUtil 定义。)
公共扩展器方法 BinarySearch(T, TResult)(Int32, Int32, TResult, Func(T, TResult), IComparer(TResult)) 已重载。 在排序 IList(T) 的某个范围中搜索特定元素。 (由 ListUtil 定义。)
公共扩展器方法 InsertRange(T) 将指定集合的元素插入到当前列表的指定索引处。 (由 ListUtil 定义。)
公共扩展器方法 IsDistinct(T) 判断序列中是否不包含重复元素。 (由 EnumerableUtil 定义。)
公共扩展器方法 NextPermutation(T) 将当前列表中的元素变换为下一排列。 (由 ListUtil 定义。)
公共扩展器方法 PrevPermutation(T) 将当前列表中的元素变换为上一排列。 (由 ListUtil 定义。)
公共扩展器方法 Reverse(T)() 已重载。 翻转指定的列表。 (由 ListUtil 定义。)
公共扩展器方法 Reverse(T)(Int32, Int32) 已重载。 翻转指定列表的指定部分。 (由 ListUtil 定义。)
公共扩展器方法 Suffle(T) 随机打乱当前列表中元素的顺序。 (由 ListUtil 定义。)
  Back to Top

参见

Reference

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

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