# ValueTupleCodec&lt;T1, T2, T3, T4, T5&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#L525)

```csharp
public sealed class ValueTupleCodec<T1, T2, T3, T4, T5> : IFieldCodec, IFieldCodec<(T1, T2, T3, T4, T5)>
```

Serializer for `System.ValueTuple-5`.

## 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.

## Constructors

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

## Methods

- [ReadValue(Reader&lt;TInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.valuetuplecodec-5/methods/readvalue-1-ref-orleans-serialization-buffers-reader-tinput-orleans-serializatio-34027aeb/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, (T1, T2, T3, T4, T5))](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.valuetuplecodec-5/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-80c9fa9f/)
