# Equals

> Determines whether this instance and another specified ShortcutBinding instance have the same value.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.ShortcutManagement](/engine/6000.7/script-reference/unityeditor/shortcutmanagement.md)
* **Assembly:** UnityEditor.CoreModule

## Equals(ShortcutBinding)

Determines whether this instance and another specified [ShortcutBinding](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding.md) instance have the same value.

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

### Parameters

**** (\[ShortcutBinding]\(/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding)): The [ShortcutBinding](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding.md) to compare to this instance.

### Returns

| Type                                                          | Description                                                                                                 |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the value of the `other` parameter is the same as the value of this instance; otherwise, `false`. |

## Equals(Object)

Determines whether this instance and a specified object, which must also be a \[\[ShortcutBinding}} object, have the same value.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The [ShortcutBinding](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding.md) to compare to this instance.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                               |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if `obj` is a [ShortcutBinding](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding.md) and its value is the same as this instance; otherwise, `false`. If `obj` is `null`, the method returns `false`. |
