# DefaultGrainActivator.CreateInstance(IGrainContext)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Activation/DefaultGrainActivator.cs#L33-L42)

```csharp
public object CreateInstance(IGrainContext context)
```

Returns a new grain instance for the provided grain context.

### Parameters

- `context` (`IGrainContext`): The grain context.

### Returns

The grain instance.
