# IGrainContext.GrainInstance

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igraincontext/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igraincontext/properties/)

```csharp
public abstract object? GrainInstance
```

Gets the grain instance, or `null` if the grain instance has not been set yet.
