# FSharpListCodec&lt;T&gt; Methods

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

## ConvertFromSurrogate(FSharpListSurrogate&lt;T&gt;) {#convertfromsurrogate-ref-orleans-serialization-fsharplistsurrogate-t-49d05add}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/methods/convertfromsurrogate-ref-orleans-serialization-fsharplistsurrogate-t-49d05add/)

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

```csharp
public override FSharpList<T> ConvertFromSurrogate(ref FSharpListSurrogate<T> surrogate)
```

Converts a value from the surrogate type to the field type.

### Parameters

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

### Returns

The value.

## ConvertToSurrogate(FSharpList&lt;T&gt;, FSharpListSurrogate&lt;T&gt;) {#converttosurrogate-microsoft-fsharp-collections-fsharplist-t-ref-orleans-seriali-369b2ee3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharplistcodec-1/methods/converttosurrogate-microsoft-fsharp-collections-fsharplist-t-ref-orleans-seriali-369b2ee3/)

[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.
