# ImmutableDictionarySurrogate&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)

```csharp
[Orleans.GenerateSerializer]
public struct ImmutableDictionarySurrogate<TKey, TValue>
```

Surrogate type used by `Orleans.Serialization.Codecs.ImmutableDictionaryCodec-2`.

## Type parameters

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

## Fields

- [ValueComparer](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutabledictionarysurrogate-2/fields/valuecomparer-e6e8322d/)
- [Values](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutabledictionarysurrogate-2/fields/values-52072a02/)
