# FSharpMapCodec&lt;TKey, TValue&gt; Constructors

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

## FSharpMapCodec&lt;TKey, TValue&gt;(IValueSerializer&lt;FSharpMapSurrogate&lt;TKey, TValue&gt;&gt;) {#constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-c164c553}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.fsharp/orleans.serialization.fsharpmapcodec-2/constructors/constructor-orleans-serialization-serializers-ivalueserializer-orleans-serializa-c164c553/)

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

```csharp
public FSharpMapCodec<TKey, FSharpMapCodec(IValueSerializer<FSharpMapSurrogate<TKey, TValue>> surrogateSerializer)
```

### Parameters

- `surrogateSerializer` (`IValueSerializer<FSharpMapSurrogate<TKey, TValue>>`)
