# Codec_ConcurrentDictionarySurrogate&lt;TKey, TValue&gt;.WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, 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, WriteField<TBufferWriter>(ref Writer<TBufferWriter> writer, uint fieldIdDelta, Type expectedType, ConcurrentDictionarySurrogate<TKey, TValue> value)
```

Writes a field.

### Parameters

- `writer` (`Writer<TBufferWriter>`): The writer.
- `fieldIdDelta` (`uint`): The field identifier delta.
- `expectedType` (`Type`): The expected type.
- `value` (`ConcurrentDictionarySurrogate<TKey, TValue>`): The value.
