# StreamIdentity Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/)

## Equals(object) {#equals-object-352d5fc0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/methods/equals-object-352d5fc0/)

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

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

Determines whether the specified object is equal to the current object.

### Parameters

- `obj` (`object`): The object to compare with the current object.

### Returns

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

## GetHashCode {#gethashcode-b843c3ad}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/methods/gethashcode-b843c3ad/)

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

```csharp
public override int GetHashCode()
```

Serves as the default hash function.

### Returns

A hash code for the current object.
