Table of Contents

Method WithValueSerializer

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

WithValueSerializer(IBsonSerializer<TValue>)

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

public DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> WithValueSerializer(IBsonSerializer<TValue> valueSerializer)

Parameters

valueSerializer IBsonSerializer<TValue>

The value serializer.

Returns

DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>

The reconfigured serializer.