# Codec_ConcurrentDictionarySurrogate&lt;TKey, TValue&gt;.Serialize(Writer&lt;TBufferWriter&gt;, ConcurrentDictionarySurrogate&lt;TKey, TValue&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-concurrentdictionarysurrogate-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-concurrentdictionarysurrogate-2/methods/)

```csharp
public void Codec_ConcurrentDictionarySurrogate<TKey, Serialize<TBufferWriter>(ref Writer<TBufferWriter> writer, scoped ref ConcurrentDictionarySurrogate<TKey, TValue> instance)
```

Serializes the provided value.

### Parameters

- `writer` (`Writer<TBufferWriter>`): The writer.
- `instance` (`ConcurrentDictionarySurrogate<TKey, TValue>`): The value.
