# Codec_ParticipantId.Serialize(Writer&lt;TBufferWriter&gt;, ParticipantId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleanscodegen.orleans.transactions.codec-participantid/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleanscodegen.orleans.transactions.codec-participantid/methods/)

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

Serializes the provided value.

### Parameters

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