# Equals

> Checks whether two DescriptorIDs contain the same ID.

## Definition

* **Type:** Method
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.6/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor

## Equals(DescriptorId)

Checks whether two DescriptorIDs contain the same ID.

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

### Parameters

**** (\[DescriptorId]\(/engine/6000.6/script-reference/unity/projectauditor/editor/descriptorid)): A DescriptorId to compare to.

### Returns

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

## Equals(string)

Checks whether two DescriptorIDs contain the same ID.

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string representing a descriptor ID to compare to.

### Returns

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