# OrleansDebuggerHelper.GetGrainInstance(object)

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

[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.
