BoundsCheckableList1.Contains
BoundsCheckableList<T>.Contains 方法
确定一个元素是否在 System.Collections.Generic.List 中。
public bool Contains(T item)
| 参数 | 类型 | 描述 |
|---|---|---|
| item | T | 要在 System.Collections.Generic.List 中查找的对象。对于引用类型,值可以为 null。 |
返回值
如果在 System.Collections.Generic.List 中找到 item,则为 true;否则为 false。