# Contains<T>(T[], T)

> Determines if the array contains the item.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## Contains\<T>(\`\<>\[], T)

```csharp
public static bool Contains<T>(T[] array, T item)
```

### Parameters

**** (\[\<T>\[]]\(./)): **** (T):&#x20;

### Returns

| Type                                                          | Description                                    |
| ------------------------------------------------------------- | ---------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if *item* is in *array*, false otherwise. |
