Open sandboxFocus

Method Contains

Contains(TKey)

Determines whether the collection contains an element with the specified key.

Declaration
public bool Contains(TKey item)
Parameters
Type Name Description
TKey item

The key to locate in the collection.

Returns
Type Description
bool

true if the collection contains an element with the specified key; otherwise, false.