# Equals

> Compare this document against another document.

## Definition

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

## Equals(SearchDocument)

Compare this document against another document.

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

### Parameters

**** (\[SearchDocument]\(/engine/6000.6/script-reference/unityeditor/search/searchdocument)): Another document to compare to.

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | If true both document are equals. |

## Equals(Object)

Compare this document against another document.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Another document to compare to.

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | If true both document are equals. |
