# Equals

> Tests equality with another record key.

## Definition

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

## Equals(PropertyDatabaseRecordKey)

Tests equality with another record key.

```csharp
public bool Equals(PropertyDatabaseRecordKey other)
```

### Parameters

**** (\[PropertyDatabaseRecordKey]\(/engine/6000.5/script-reference/unityeditor/search/propertydatabaserecordkey)): A record key.

### Returns

| Type                                                          | Description                              |
| ------------------------------------------------------------- | ---------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if they are equal, otherwise false. |

## Equals(Object)

Tests equality with another record key.

```csharp
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): A record key.

### Returns

| Type                                                          | Description                              |
| ------------------------------------------------------------- | ---------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if they are equal, otherwise false. |
