# CachedMessage.Equals(CachedMessage)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.cachedmessage/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.cachedmessage/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/Common/PooledCache/CachedMessage.cs#L46-L51)

```csharp
public readonly bool Equals(CachedMessage other)
```

Indicates whether the current object is equal to another object of the same type.

### Parameters

- `other` (`CachedMessage`): An object to compare with this object.

### Returns

`true` if the current object is equal to the `other` parameter; otherwise, `false`.
