# FSharpSetCodec&lt;T&gt;

Package: [Microsoft.Orleans.Serialization.FSharp](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization.FSharp) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.FSharp/FSharpCodecs.cs#L968)

```csharp
public class FSharpSetCodec<T> : GeneralizedReferenceTypeSurrogateCodec<FSharpSet<T>, FSharpSetSurrogate<T>>
```

Surrogate serializer for `TField` and all sub-types.

## Type parameters

- `T`: The type which the implementation of this class supports.

## Constructors

- [FSharpSetCodec&lt;T&gt;(IValueSerializer&lt;FSharpSetSurrogate&lt;T&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharpsetcodec-1/constructors/constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-e5976a09/)

## Methods

- [ConvertFromSurrogate(FSharpSetSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharpsetcodec-1/methods/convertfromsurrogate-ref-orleans-serialization-fsharpsetsurrogate-t-e9087ad5/)
- [ConvertToSurrogate(FSharpSet&lt;T&gt;, FSharpSetSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharpsetcodec-1/methods/converttosurrogate-microsoft-fsharp-collections-fsharpset-t-ref-orleans-serializ-08364717/)
