# Codec_State.Deserialize(Reader&lt;TReaderInput&gt;, State)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/methods/)

```csharp
public void Deserialize<TReaderInput>(ref Reader<TReaderInput> reader, State instance)
```

Deserializes into the provided value.

### Parameters

- `reader` (`Reader<TReaderInput>`): The reader.
- `instance` (`State`): The value.
