# FSharpRefCodec&lt;T&gt; Constructors

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

## FSharpRefCodec&lt;T&gt;(IValueSerializer&lt;FSharpRefSurrogate&lt;T&gt;&gt;) {#constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-a8df7860}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharprefcodec-1/constructors/constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-a8df7860/)

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

```csharp
public FSharpRefCodec(IValueSerializer<FSharpRefSurrogate<T>> surrogateSerializer)
```

### Parameters

- `surrogateSerializer` (`IValueSerializer<FSharpRefSurrogate<T>>`)
