# FSharpSetCodec&lt;T&gt;.ConvertToSurrogate(FSharpSet&lt;T&gt;, FSharpSetSurrogate&lt;T&gt;)

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

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

```csharp
public override void ConvertToSurrogate(FSharpSet<T> value, ref FSharpSetSurrogate<T> surrogate)
```

Converts a value to the surrogate type.

### Parameters

- `value` (`FSharpSet<T>`): The value.
- `surrogate` (`FSharpSetSurrogate<T>`): The surrogate.
