# Codec_ImmutableDictionarySurrogate&lt;TKey, TValue&gt;.Deserialize(Reader&lt;TReaderInput&gt;, ImmutableDictionarySurrogate&lt;TKey, TValue&gt;)

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

```csharp
public void Codec_ImmutableDictionarySurrogate<TKey, Deserialize<TReaderInput>(ref Reader<TReaderInput> reader, scoped ref ImmutableDictionarySurrogate<TKey, TValue> instance)
```

Deserializes the specified type.

### Parameters

- `reader` (`Reader<TReaderInput>`): The reader.
- `instance` (`ImmutableDictionarySurrogate<TKey, TValue>`): The value.
