# DictionaryBaseCodec&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/DictionaryCodec.cs#L225)

```csharp
public sealed class DictionaryBaseCodec<TKey, TValue> : IBaseCodec, IBaseCodec<Dictionary<TKey, TValue>>
    where TKey : notnull
```

Serializer for `System.Collections.Generic.Dictionary-2`.

## Type parameters

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

## Constructors

- [DictionaryBaseCodec&lt;TKey, TValue&gt;(IFieldCodec&lt;TKey&gt;, IFieldCodec&lt;TValue&gt;, IFieldCodec&lt;IEqualityComparer&lt;TKey&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.dictionarybasecodec-2/constructors/constructor-orleans-serialization-codecs-ifieldcodec-tkey-orleans-serialization-e792a95c/)
