# ImmutableSortedDictionarySurrogate&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 ImmutableSortedDictionarySurrogate<TKey, TValue>
```

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

## Type parameters

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

## Fields

- [KeyComparer](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarysurrogate-2/fields/keycomparer-dfa1e56a/)
- [ValueComparer](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarysurrogate-2/fields/valuecomparer-9c57995e/)
- [Values](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarysurrogate-2/fields/values-786bab89/)
