Methods_T_Cyjb_Collections_PooledList_1 - CYJB/Cyjb GitHub Wiki

PooledList(T) 方法

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

方法

 

名称 说明
公共方法 Add(T) 将指定元素添加到当前列表中。
公共方法 Add(ReadOnlySpan(T)) 将指定的多个元素添加到当前列表中。
公共方法 Add(T, Int32) 将指定元素重复多次添加到当前列表中。
公共方法 AddSpan 添加指定长度的元素,并返回相应的切片用于初始化。
公共方法 AsSpan() 返回当前列表的切片。
公共方法 AsSpan(Int32) 返回当前列表的切片。
公共方法 AsSpan(Int32, Int32) 返回当前列表的切片。
公共方法 Clear 从当前集合中移除所有元素。
公共方法 CopyTo 将当前列表中的元素复制到目标 Span(T)
公共方法 Dispose 释放需要回收的空间。
公共方法 EnsureCapacity 确保当前实例至少可以容纳指定容量的字符。
公共方法 Equals Determines whether the specified object is equal to the current object. (继承自 Object。)
公共方法 GetEnumerator 返回一个循环访问当前列表的枚举器。
公共方法 GetHashCode Serves as the default hash function. (继承自 Object。)
公共方法 GetPinnableReference 返回对于可用于固定的 T 类型的对象的引用。
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 Insert(Int32, T) 将元素插入当前列表的指定索引处。
公共方法 Insert(Int32, ReadOnlySpan(T)) 将多个元素插入当前列表的指定索引处。
公共方法 Insert(Int32, T, Int32) 将指定元素重复多次插入到当前列表的指定索引处。
公共方法 InsertSpan 在当前列表的指定索引处插入指定长度的元素,并返回相应的切片用于初始化。
公共方法 RemoveAt 移除当前列表中指定索引处的元素。
公共方法 RemoveRange 移除当前列表中指定索引处的多个元素。
公共方法 ToArray 将当前列表的内容复制到新数组中。
公共方法 ToString 返回当前元素的字符串表示形式。 (重写 Object.ToString().)
公共方法 TryCopyTo 尝试将当前列表中的元素复制到目标 Span(T),并返回已复制的元素个数。
  Back to Top

参见

Reference

PooledList(T) 类
Cyjb.Collections 命名空间

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