# OrleansDebuggerHelper Methods

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

## GetGrainInstance(object) {#getgraininstance-object-e9a862b2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.utilities.orleansdebuggerhelper/methods/getgraininstance-object-e9a862b2/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Utilities/OrleansDebuggerHelper.cs#L25-L34)

```csharp
public static object GetGrainInstance(object grainReference)
```

Returns the grain instance corresponding to the provided `grainReference` if it is activated on current silo.

### Parameters

- `grainReference` (`object`): The grain reference.

### Returns

The grain instance corresponding to the provided `grainReference` if it is activated on current silo, or `null` otherwise.
