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

> Compares two array references.

## Definition

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

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

```csharp
public static bool ArrayReferenceEquals<T>(T[] lhs, T[] rhs)
```

### Parameters

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

### Returns

| Type                                                          | Description                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if both have the same number of elements and are the same instances. |
