# StreamId.operator ==(StreamId, StreamId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/StreamId.cs#L158)

```csharp
public static bool operator ==(StreamId s1, StreamId s2)
```

Compares two [StreamId](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/) instances for equality.

### Parameters

- `s1` (`StreamId`): The first stream identity.
- `s2` (`StreamId`): The second stream identity.

### Returns

The result of the operator.
