BoundsCheckableList1.Remove

BoundsCheckableList<T>.Remove 方法

从 System.Collections.Generic.List 中删除特定对象的第一次出现。

public bool Remove(T item)
参数类型描述
itemT要从 System.Collections.Generic.List 中删除的对象。 对于引用类型,值可以为 null。

返回值

如果 item 成功删除,则为 true;否则为 false。 如果在 System.Collections.Generic.List 中未找到 item,此方法也会返回 false。

另请参阅