Skip to content

M_Cyjb_Collections_PooledList_1_Add_2

CYJB edited this page Mar 20, 2024 · 2 revisions

PooledList(T).Add 方法 (T, Int32)

将指定元素重复多次添加到当前列表中。

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

语法

C#

public void Add(
	T item,
	int count
)

参数

 

item
Type: T
要添加到当前列表的元素。
count
Type: System.Int32
要重复的次数。

Exceptions

 

异常 条件
ArgumentOutOfRangeException count 小于 0。

参见

Reference

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

Clone this wiki locally