Skip to content

Methods_T_Cyjb_Collections_BitList

CYJB edited this page Feb 1, 2024 · 3 revisions

BitList 方法

The BitList type exposes the following members.

方法

 

名称 说明
公共方法 Add 将指定对象添加到当前集合中。 (继承自 CollectionBase(T)。)
公共方法 AddRange(IEnumerable(Boolean)) 将指定集合的元素添加到 BitList 的末尾。
公共方法 AddRange(IEnumerable(Byte)) 将指定集合的元素添加到 BitList 的末尾。
公共方法 AddRange(IEnumerable(Int32)) 将指定集合的元素添加到 BitList 的末尾。
公共方法 AddRange(IEnumerable(UInt32)) 将指定集合的元素添加到 BitList 的末尾。
公共方法 AddRange(Int32, Boolean) 将指定长度的值添加到 BitList 的末尾。
公共方法 AllFalse 判断当前列表中的值是否全为 false
公共方法 AllTrue 判断当前列表中的值是否全为 true
公共方法 And 对当前 BitList 中的元素和指定 BitList 中的相应元素执行按位“与”运算。
公共方法 Clear BitList 中移除所有元素。 (重写 CollectionBase(T).Clear().)
公共方法 Contains 确定当前列表是否包含指定对象。 (继承自 ListBase(T)。)
公共方法 CopyTo 从特定的 Array 索引处开始,将当前集合 的元素复制到一个 Array 中。 (继承自 CollectionBase(T)。)
公共方法 Equals(BitList) 指示当前对象是否等于同一类型的另一个对象。
公共方法 Equals(Object) 确定指定对象是否等于当前对象。 (重写 Object.Equals(Object).)
公共方法 Fill 填充指定范围中的元素。
公共方法 FillAll 将所有位填充为指定的值。
公共方法 FindSpace 寻找可以放入指定模式的最小空当索引,允许使用超出当前列表范围的空当。
公共方法 GetEnumerator 返回一个循环访问集合的枚举器。 (重写 CollectionBase(T).GetEnumerator().)
公共方法 GetHashCode 返回当前对象的哈希代码。 (重写 Object.GetHashCode().)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 IndexOf(Boolean) 确定 BitList 中特定项的索引。 (重写 ListBase(T).IndexOf(T).)
公共方法 IndexOf(BitList, Int32) 返回首个可以匹配指定模式的索引。
公共方法 IndexOf(Boolean, Int32) 确定 BitList 中特定项的索引。
公共方法 Insert 将元素插入当前列表的指定索引处。 (继承自 ListBase(T)。)
公共方法 InsertRange(Int32, IEnumerable(Boolean)) 将指定集合中的元素插入 BitList 的指定索引处。
公共方法 InsertRange(Int32, IEnumerable(Byte)) 将指定集合中的元素插入 BitList 的指定索引处。
公共方法 InsertRange(Int32, IEnumerable(Int32)) 将指定集合中的元素插入 BitList 的指定索引处。
公共方法 InsertRange(Int32, IEnumerable(UInt32)) 将指定集合中的元素插入 BitList 的指定索引处。
公共方法 InsertRange(Int32, Int32, Boolean) 将指定长度的值插入 BitList 的指定索引处。
公共方法 LastIndexOf(Boolean) 确定 BitList 中特定项最后一次出现的索引。
公共方法 LastIndexOf(Boolean, Int32) 确定 BitList 中特定项最后一次出现的索引。
公共方法 LeftShift 将当前 BitList 中的所有位值左移 offset 位。 这里的左移是向着索引增大的方向移动。
公共方法 Not 反转当前 BitList 中的所有位值,以便将设置为 true 的元素更改为 false; 将设置为 false 的元素更改为 true
公共方法 Or 对当前 BitList 中的元素和指定 BitList 中的相应元素执行按位“或”运算。
公共方法 Remove 从当前列表中移除特定对象的第一个匹配项。 (继承自 ListBase(T)。)
公共方法 RemoveAt 移除当前列表中指定索引处的元素。 (继承自 ListBase(T)。)
公共方法 RemoveRange BitList 中移除指定范围的元素。
公共方法 Resize 将当前列表调整为指定的新大小。
公共方法 RightShift 将当前 BitList 中的所有位值右移 offset 位。 这里的右移是向着索引减小的方向移动。
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
公共方法 Xor 对当前 BitList 中的元素和指定 BitList 中的相应元素执行按位“异或”运算。
  Back to Top

参见

Reference

BitList 类
Cyjb.Collections 命名空间

Clone this wiki locally