Table of Contents

Method WithKeySerializer

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

WithKeySerializer(IBsonSerializer)

Returns a serializer that has been reconfigured with the specified key serializer.

public DictionaryInterfaceImplementerSerializer<TDictionary> WithKeySerializer(IBsonSerializer keySerializer)

Parameters

keySerializer IBsonSerializer

The key serializer.

Returns

DictionaryInterfaceImplementerSerializer<TDictionary>

The reconfigured serializer.