BoundsCheckableList1.Contains

BoundsCheckableList<T>.Contains 方法

确定一个元素是否在 System.Collections.Generic.List 中。

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

返回值

如果在 System.Collections.Generic.List 中找到 item,则为 true;否则为 false。

另请参阅