# IdComparer

Package: [Microsoft.Orleans.Transactions](/orleans/docs/api/csharp/microsoft.orleans.transactions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Transactions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L45)

```csharp
[Orleans.GenerateSerializer]
[Orleans.Immutable]
public sealed class IdComparer : IEqualityComparer<ParticipantId>
```

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Constructors

- [IdComparer](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantid.idcomparer/constructors/constructor-2e5f5f59/)

## Methods

- [Equals(ParticipantId, ParticipantId)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantid.idcomparer/methods/equals-orleans-transactions-participantid-orleans-transactions-participantid-93fbe747/)
- [GetHashCode(ParticipantId)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantid.idcomparer/methods/gethashcode-orleans-transactions-participantid-da34c082/)
