# Codec_State

Package: [Microsoft.Orleans.Transactions.TestKit.Base](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Transactions.TestKit.Base)

```csharp
public sealed class Codec_State : IFieldCodec, IFieldCodec<State>, IBaseCodec, IBaseCodec<State>
```

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Constructors

- [Codec_State](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/constructors/constructor-9c60d8d5/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, State)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-tran-f8c16c69/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-a0e97810/)
- [Serialize(Writer&lt;TBufferWriter&gt;, State)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-orleans-trans-08b70ca8/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, State)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.consistency.consistencytestgrain.codec-state/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-ad25866a/)
