# FSharpListCodec&lt;T&gt;.ConvertToSurrogate(FSharpList&lt;T&gt;, FSharpListSurrogate&lt;T&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.FSharp/FSharpCodecs.cs#L927-L930)

```csharp
public override void ConvertToSurrogate(FSharpList<T> value, ref FSharpListSurrogate<T> surrogate)
```

Converts a value to the surrogate type.

### Parameters

- `value` (`FSharpList<T>`): The value.
- `surrogate` (`FSharpListSurrogate<T>`): The surrogate.
