# Codec_StreamSubscription

Package: [Microsoft.Orleans.Streaming](/orleans/docs/api/csharp/microsoft.orleans.streaming/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming)

```csharp
public sealed class Codec_StreamSubscription : IFieldCodec, IFieldCodec<StreamSubscription>
```

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_StreamSubscription(IActivator&lt;StreamSubscription&gt;, ICodecProvider)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.core.codec-streamsubscription/constructors/constructor-orleans-serialization-activators-iactivator-orleans-streams-core-str-8901b665/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, StreamSubscription)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.core.codec-streamsubscription/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-stre-db8b4abb/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.core.codec-streamsubscription/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-c0ab3ba8/)
- [Serialize(Writer&lt;TBufferWriter&gt;, StreamSubscription)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.core.codec-streamsubscription/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-orleans-strea-eb77f280/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, StreamSubscription)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.core.codec-streamsubscription/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-0bb5e042/)
