# Equals

> Returns true if the refresh rates are equal.

## Definition

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

## Equals(RefreshRate)

Returns true if the refresh rates are equal.

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

### Parameters

**** (\[RefreshRate]\(/engine/6000.0/script-reference/unityengine/refreshrate)): Refresh rate to compare against.

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if both refresh rates represent the same value, otherwise false. |

### Remarks

Refresh rates are compared as ratios, so fractions that represent the same value are equal even if their numerators and denominators differ. For example, a refresh rate of 120/2 is equal to a refresh rate of 60/1.

## Equals(Object)

Returns true if the refresh rates are equal.

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

### Parameters

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

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if both refresh rates represent the same value, otherwise false. |

### Remarks

Refresh rates are compared as ratios, so fractions that represent the same value are equal even if their numerators and denominators differ. For example, a refresh rate of 120/2 is equal to a refresh rate of 60/1.
