# operator ==(NativeReference<T>, NativeReference<T>)

> Returns true if the values stored in two references are equal.

## Definition

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

```csharp
public static bool operator ==(NativeReference<T> left, NativeReference<T> right)
```

### Parameters

**** (\[NativeReference\<T>]\(/engine/6000.7/script-reference/unity/collections/nativereference1)): A reference.**** (\[NativeReference\<T>]\(/engine/6000.7/script-reference/unity/collections/nativereference1)): Another reference.

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two values are equal. |
