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
keySerializerIBsonSerializerThe key serializer.
Returns
- DictionaryInterfaceImplementerSerializer<TDictionary>
 The reconfigured serializer.