# GrainProperties Methods

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

## Equals(GrainProperties?) {#equals-orleans-metadata-grainproperties-nullable-44a8d23d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainproperties/methods/equals-orleans-metadata-grainproperties-nullable-44a8d23d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainProperties.cs#L71-L73)

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

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

### Parameters

- `other` (`GrainProperties?`): 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-4b09aaf3}

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

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainproperties/methods/gethashcode-d6b02633/)

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

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

Serves as the default hash function.

### Returns

A hash code for the current object.

## ToDetailedString {#todetailedstring-aec9fe0c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.grainproperties/methods/todetailedstring-aec9fe0c/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainProperties.cs#L49-L64)

```csharp
public string ToDetailedString()
```

Returns a detailed, string representation of this instance.

### Returns

A detailed, string representation of this instance.
