# FSharpListCodec&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#L912)

```csharp
public class FSharpListCodec<T> : GeneralizedReferenceTypeSurrogateCodec<FSharpList<T>, FSharpListSurrogate<T>>
```

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

## Type parameters

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

## Constructors

- [FSharpListCodec&lt;T&gt;(IValueSerializer&lt;FSharpListSurrogate&lt;T&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/constructors/constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-c7c0edc5/)

## Methods

- [ConvertFromSurrogate(FSharpListSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/methods/convertfromsurrogate-ref-orleans-serialization-fsharplistsurrogate-t-49d05add/)
- [ConvertToSurrogate(FSharpList&lt;T&gt;, FSharpListSurrogate&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/methods/converttosurrogate-microsoft-fsharp-collections-fsharplist-t-ref-orleans-seriali-369b2ee3/)
