# Equals

> Determines whether this instance and a specified object, which must also be a PropertyName object, have the same value.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Equals(Object)

Determines whether this instance and a specified object, which must also be a PropertyName object, have the same value.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## Equals(PropertyName)

Determines whether this instance and a specified object, which must also be a PropertyName object, have the same value.

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

### Parameters

**** (\[PropertyName]\(/engine/6000.5/script-reference/unityengine/propertyname)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
