# GrainState&lt;T&gt;.State

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.grainstate-1/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.grainstate-1/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/CodeGeneration/IGrainState.cs)

```csharp
[Orleans.Id(0)]
public T State
```

Gets or sets the state.
