# Equals

> Check if two SearchItems have the same ID.

## Definition

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

## Equals(Object)

Check if two SearchItems have the same ID.

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

### Parameters

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

### Returns

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

## Equals(SearchItem)

Check if two SearchItems have the same ID.

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

### Parameters

**** (\[SearchItem]\(/engine/6000.6/script-reference/unityeditor/search/searchitem)): AnotherSearchItem to compare.

### Returns

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