# ValueTupleCodec&lt;T1, T2, T3, T4, T5, T6, T7, T8&gt;

Package: [Microsoft.Orleans.Serialization](/orleans/docs/api/csharp/microsoft.orleans.serialization/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ValueTupleCodec.cs#L1027)

```csharp
public sealed class ValueTupleCodec<T1, T2, T3, T4, T5, T6, T7, T8> : IFieldCodec, IFieldCodec<ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8>>
    where T8 : struct
```

Serializer for `System.ValueTuple-8`.

## Type parameters

- `T1`: The type of the tuple's first component.
- `T2`: The type of the tuple's second component.
- `T3`: The type of the tuple's third component.
- `T4`: The type of the tuple's fourth component.
- `T5`: The type of the tuple's fifth component.
- `T6`: The type of the tuple's sixth component.
- `T7`: The type of the tuple's seventh component.
- `T8`: The type of the tuple's eighth component.

## Constructors

- [ValueTupleCodec&lt;T1, T2, T3, T4, T5, T6, T7, T8&gt;(IFieldCodec&lt;T1&gt;, IFieldCodec&lt;T2&gt;, IFieldCodec&lt;T3&gt;, IFieldCodec&lt;T4&gt;, IFieldCodec&lt;T5&gt;, IFieldCodec&lt;T6&gt;, IFieldCodec&lt;T7&gt;, IFieldCodec&lt;T8&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.valuetuplecodec-8/constructors/constructor-orleans-serialization-codecs-ifieldcodec-t1-orleans-serialization-co-92fdf393/)

## Methods

- [ReadValue(Reader&lt;TInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.valuetuplecodec-8/methods/readvalue-1-ref-orleans-serialization-buffers-reader-tinput-orleans-serializatio-1ac9b097/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, ValueTuple&lt;T1, T2, T3, T4, T5, T6, T7, T8&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.valuetuplecodec-8/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-ccd9a3a5/)
