# Codec_ImmutableHashSetSurrogate&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_ImmutableHashSetSurrogate<T> : IFieldCodec, IFieldCodec<ImmutableHashSetSurrogate<T>>, IValueSerializer, IValueSerializer<ImmutableHashSetSurrogate<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_ImmutableHashSetSurrogate&lt;T&gt;(ICodecProvider)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablehashsetsurrogate-1/constructors/constructor-orleans-serialization-serializers-icodecprovider-ba98a87a/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, ImmutableHashSetSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablehashsetsurrogate-1/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-ref-orleans-9e1653ba/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablehashsetsurrogate-1/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-3fb64492/)
- [Serialize(Writer&lt;TBufferWriter&gt;, ImmutableHashSetSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablehashsetsurrogate-1/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-ref-orleans-s-1495d573/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, ImmutableHashSetSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.codec-immutablehashsetsurrogate-1/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-026178ec/)
