# Codec_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
public sealed class Codec_ImmutableDictionarySurrogate<TKey, TValue> : IFieldCodec, IFieldCodec<ImmutableDictionarySurrogate<TKey, TValue>>, IValueSerializer, IValueSerializer<ImmutableDictionarySurrogate<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_ImmutableDictionarySurrogate&lt;TKey, TValue&gt;(ICodecProvider)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutabledictionarysurrogate-2/constructors/constructor-orleans-serialization-serializers-icodecprovider-d7ff7e3c/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, ImmutableDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutabledictionarysurrogate-2/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-ref-orleans-7bbf67b6/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutabledictionarysurrogate-2/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-912d6ae2/)
- [Serialize(Writer&lt;TBufferWriter&gt;, ImmutableDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutabledictionarysurrogate-2/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-ref-orleans-s-cebc81b3/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, ImmutableDictionarySurrogate&lt;TKey, TValue&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutabledictionarysurrogate-2/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-6f4171f0/)
