# ClusterMember Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.clustermember/)

## Equals(ClusterMember) {#equals-orleans-runtime-clustermember-474d53c4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.clustermember/methods/equals-orleans-runtime-clustermember-474d53c4/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/MembershipService/ClusterMember.cs#L56-L59)

```csharp
public bool Equals(ClusterMember other)
```

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

### Parameters

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

### Returns

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

## Equals(object) {#equals-object-02f25eb2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.clustermember/methods/equals-object-02f25eb2/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/MembershipService/ClusterMember.cs#L53)

```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-c0d64039}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.clustermember/methods/gethashcode-c0d64039/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/MembershipService/ClusterMember.cs#L62)

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

Serves as the default hash function.

### Returns

A hash code for the current object.

## ToString {#tostring-2599e572}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.clustermember/methods/tostring-2599e572/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/MembershipService/ClusterMember.cs#L65)

```csharp
public override string ToString()
```

Returns a string that represents the current object.

### Returns

A string that represents the current object.
