# Contains(T)

> Returns true if a given item is present in this hash set.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public readonly bool Contains(T item)
```

### Parameters

**** (T): The item to look up.

### Returns

| Type                                                          | Description                   |
| ------------------------------------------------------------- | ----------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the item was present. |
