# GrainManifest Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainmanifest/)

## Equals(GrainManifest?) {#equals-orleans-metadata-grainmanifest-nullable-0f2570b5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainmanifest/methods/equals-orleans-metadata-grainmanifest-nullable-0f2570b5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainManifest.cs#L65-L67)

```csharp
public bool Equals(GrainManifest? other)
```

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

### Parameters

- `other` (`GrainManifest?`): 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-nullable-d49a0da7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainmanifest/methods/equals-object-nullable-d49a0da7/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainManifest.cs#L61)

```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-567e98cf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainmanifest/methods/gethashcode-567e98cf/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainManifest.cs#L57-L59)

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

Serves as the default hash function.

### Returns

A hash code for the current object.
