Skip to content

M_Cyjb_Collections_ObjectModel_CollectionBase_1_Remove

CYJB edited this page Mar 20, 2024 · 13 revisions

CollectionBase(T).Remove 方法

从当前集合中移除特定对象的第一个匹配项。

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

语法

C#

public abstract bool Remove(
	T item
)

参数

 

item
Type: T
要从当前集合中移除的对象。

返回值

Type: Boolean
如果已从当前集合中成功移除 item,则为 true;否则为 false。 如果在当前集合中没有找到 item,该方法也会返回 false

实现

ICollection(T).Remove(T)

参见

Reference

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

Clone this wiki locally