# Codec_ImmutableStackSurrogate&lt;T&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_ImmutableStackSurrogate<T> : IFieldCodec, IFieldCodec<ImmutableStackSurrogate<T>>, IValueSerializer, IValueSerializer<ImmutableStackSurrogate<T>>
```

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_ImmutableStackSurrogate&lt;T&gt;(ICodecProvider)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablestacksurrogate-1/constructors/constructor-orleans-serialization-serializers-icodecprovider-850c777a/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, ImmutableStackSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablestacksurrogate-1/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-ref-orleans-81fd461e/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablestacksurrogate-1/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-1316d822/)
- [Serialize(Writer&lt;TBufferWriter&gt;, ImmutableStackSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablestacksurrogate-1/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-ref-orleans-s-74d9ba63/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, ImmutableStackSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablestacksurrogate-1/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-0896ef58/)
