# Equals

> Compare Search Result using their index values.

## Definition

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

## Equals(SearchResult)

Compare Search Result using their index values.

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

### Parameters

**** (\[SearchResult]\(/engine/6000.6/script-reference/unityeditor/search/searchresult)): Another SearchResult to compare.

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if both SearchResults have the same index. |

## Equals(Object)

Compare Search Result using their index values.

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

### Parameters

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

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if both SearchResults have the same index. |
