Method WithDictionaryRepresentation
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithDictionaryRepresentation(DictionaryRepresentation)
Returns a serializer that has been reconfigured with the specified dictionary representation.
public ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> WithDictionaryRepresentation(DictionaryRepresentation dictionaryRepresentation)Parameters
- dictionaryRepresentationDictionaryRepresentation
- The dictionary representation. 
Returns
- ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>
- The reconfigured serializer. 
WithDictionaryRepresentation(DictionaryRepresentation, IBsonSerializer<TKey>, IBsonSerializer<TValue>)
Returns a serializer that has been reconfigured with the specified dictionary representation and key value serializers.
public ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> WithDictionaryRepresentation(DictionaryRepresentation dictionaryRepresentation, IBsonSerializer<TKey> keySerializer, IBsonSerializer<TValue> valueSerializer)Parameters
- dictionaryRepresentationDictionaryRepresentation
- The dictionary representation. 
- keySerializerIBsonSerializer<TKey>
- The key serializer. 
- valueSerializerIBsonSerializer<TValue>
- The value serializer. 
Returns
- ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>
- The reconfigured serializer.