# GrainInterfaceProperties Methods

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

## Equals(GrainInterfaceProperties?) {#equals-orleans-metadata-graininterfaceproperties-nullable-e14fee6b}

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainInterfaceProperties.cs#L70-L72)

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

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

### Parameters

- `other` (`GrainInterfaceProperties?`): 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-b6ba534e}

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

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

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

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

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

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

Serves as the default hash function.

### Returns

A hash code for the current object.

## ToDetailedString {#todetailedstring-9c5136a5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.graininterfaceproperties/methods/todetailedstring-9c5136a5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Manifest/GrainInterfaceProperties.cs#L48-L63)

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

Returns a detailed string representation of this instance.

### Returns

A detailed, string representation of this instance.
