# FrozenDictionaryCodec&lt;TKey, TValue&gt; Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.frozendictionarycodec-2/)

## FrozenDictionaryCodec&lt;TKey, TValue&gt;(IValueSerializer&lt;FrozenDictionarySurrogate&lt;TKey, TValue&gt;&gt;) {#constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-ef27baa9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.frozendictionarycodec-2/constructors/constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-ef27baa9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/FrozenDictionaryCodec.cs#L23-L25)

```csharp
public FrozenDictionaryCodec<TKey, FrozenDictionaryCodec(IValueSerializer<FrozenDictionarySurrogate<TKey, TValue>> surrogateSerializer)
```

Initializes a new instance of the `Orleans.Serialization.Codecs.FrozenDictionaryCodec-2` class.

### Parameters

- `surrogateSerializer` (`IValueSerializer<FrozenDictionarySurrogate<TKey, TValue>>`): The surrogate serializer.
