ImmutableArray<T>.Contains(T) 方法

定义

确定指定的项是否存在于数组中。Determines whether the specified item exists in the array.

public:
 virtual bool Contains(T item);
public bool Contains (T item);
abstract member Contains : 'T -> bool
override this.Contains : 'T -> bool
Public Function Contains (item As T) As Boolean

参数

item
T

要搜索的项。The item to search for.

返回

如果在数组中找到了指定的项,则为 true;否则为 falsetrue if the specified item was found in the array; otherwise false.

实现

适用于