# Codec_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
public sealed class Codec_ImmutableSortedDictionarySurrogate<TKey, TValue> : IFieldCodec, IFieldCodec<ImmutableSortedDictionarySurrogate<TKey, TValue>>, IValueSerializer, IValueSerializer<ImmutableSortedDictionarySurrogate<TKey, TValue>>
```

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Constructors

- [Codec_ImmutableSortedDictionarySurrogate&lt;TKey, TValue&gt;(ICodecProvider)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablesorteddictionarysurrogate-2/constructors/constructor-orleans-serialization-serializers-icodecprovider-c1f50462/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, ImmutableSortedDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablesorteddictionarysurrogate-2/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-ref-orleans-56a29d84/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablesorteddictionarysurrogate-2/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-3cf86878/)
- [Serialize(Writer&lt;TBufferWriter&gt;, ImmutableSortedDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablesorteddictionarysurrogate-2/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-ref-orleans-s-fd082c41/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, ImmutableSortedDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablesorteddictionarysurrogate-2/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-dfb33b96/)
