Method WithKeySerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithKeySerializer(IBsonSerializer<TKey>)
Returns a serializer that has been reconfigured with the specified key serializer.
public DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> WithKeySerializer(IBsonSerializer<TKey> keySerializer)
Parameters
keySerializer
IBsonSerializer<TKey>The key serializer.
Returns
- DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>
The reconfigured serializer.