# IdComparer.GetHashCode(ParticipantId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantid.idcomparer/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantid.idcomparer/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L52)

```csharp
public int GetHashCode(ParticipantId obj)
```

Returns a hash code for the specified object.

### Parameters

- `obj` (`ParticipantId`): The `System.Object` for which a hash code is to be returned.

### Returns

A hash code for the specified object.

### Exceptions

- `System.ArgumentNullException`: The type of `obj` is a reference type and `obj` is `null`.
