# Codec_EventHubSequenceToken.Serialize(Writer&lt;TBufferWriter&gt;, EventHubSequenceToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleanscodegen.orleans.streaming.eventhubs.codec-eventhubsequencetoken/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleanscodegen.orleans.streaming.eventhubs.codec-eventhubsequencetoken/methods/)

```csharp
public void Serialize<TBufferWriter>(ref Writer<TBufferWriter> writer, EventHubSequenceToken instance)
```

Serializes the provided value.

### Parameters

- `writer` (`Writer<TBufferWriter>`): The writer.
- `instance` (`EventHubSequenceToken`): The value.
