# FrozenDictionaryCodec&lt;TKey, TValue&gt;

Package: [Microsoft.Orleans.Serialization](/orleans/docs/api/csharp/microsoft.orleans.serialization/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/FrozenDictionaryCodec.cs#L17)

```csharp
public sealed class FrozenDictionaryCodec<TKey, TValue> : GeneralizedReferenceTypeSurrogateCodec<FrozenDictionary<TKey, TValue>, FrozenDictionarySurrogate<TKey, TValue>>
```

Serializer for `System.Collections.Frozen.FrozenDictionary-2`.

## Type parameters

- `TKey`: The key type.
- `TValue`: The value type.

## Constructors

- [FrozenDictionaryCodec&lt;TKey, TValue&gt;(IValueSerializer&lt;FrozenDictionarySurrogate&lt;TKey, TValue&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.frozendictionarycodec-2/constructors/constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-ef27baa9/)

## Methods

- [ConvertFromSurrogate(FrozenDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.frozendictionarycodec-2/methods/convertfromsurrogate-ref-orleans-serialization-codecs-frozendictionarysurrogate-b45f856b/)
- [ConvertToSurrogate(FrozenDictionary&lt;TKey, TValue&gt;, FrozenDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.frozendictionarycodec-2/methods/converttosurrogate-system-collections-frozen-frozendictionary-tkey-tvalue-ref-or-6e663d5d/)
