BoundsCheckableList1.Remove
BoundsCheckableList<T>.Remove 方法
从 System.Collections.Generic.List 中删除特定对象的第一次出现。
public bool Remove(T item)
| 参数 | 类型 | 描述 |
|---|---|---|
| item | T | 要从 System.Collections.Generic.List 中删除的对象。 对于引用类型,值可以为 null。 |
返回值
如果 item 成功删除,则返回 true;否则返回 false。 如果在 System.Collections.Generic.List 中未找到 item,此方法也会返回 false。