# MessageId.operator ==(MessageId, MessageId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.messageid/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.messageid/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Messaging/MessageId.cs#L71)

```csharp
public static bool operator ==(MessageId left, MessageId right)
```

Compares message identities.

### Parameters

- `left` (`MessageId`): The first identity.
- `right` (`MessageId`): The second identity.

### Returns

Whether the identities are equal.
