M_Cyjb_Collections_PooledList_1_RemoveRange - CYJB/Cyjb GitHub Wiki

PooledList(T).RemoveRange 方法

移除当前列表中指定索引处的多个元素。

Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public void RemoveRange(
	int index,
	int count
)

参数

 

index
Type: System.Int32
要移除的元素的从零开始的索引。
count
Type: System.Int32
要移除的元素个数。

Exceptions

 

异常 条件
ArgumentOutOfRangeException index 不是当前列表的有效索引。
ArgumentOutOfRangeException index + count 不是当前当前列表的有效索引。

参见

Reference

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

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