# operator ==(PropertyName, PropertyName)

> Determines whether two specified PropertyName have the same string value. Because two PropertyNames initialized with the same string value always have the same name index, we can simply perform a comparison of two ints to find out if the string value equals.

## Definition

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

```csharp
public static bool operator ==(PropertyName lhs, PropertyName rhs)
```

### Parameters

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

### Returns

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