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 DictionaryInterfaceImplementerSerializer<TDictionary> WithDictionaryRepresentation(DictionaryRepresentation dictionaryRepresentation)Parameters
- dictionaryRepresentationDictionaryRepresentation
- The dictionary representation. 
Returns
- DictionaryInterfaceImplementerSerializer<TDictionary>
- The reconfigured serializer. 
WithDictionaryRepresentation(DictionaryRepresentation, IBsonSerializer, IBsonSerializer)
Returns a serializer that has been reconfigured with the specified dictionary representation and key value serializers.
public DictionaryInterfaceImplementerSerializer<TDictionary> WithDictionaryRepresentation(DictionaryRepresentation dictionaryRepresentation, IBsonSerializer keySerializer, IBsonSerializer valueSerializer)Parameters
- dictionaryRepresentationDictionaryRepresentation
- The dictionary representation. 
- keySerializerIBsonSerializer
- The key serializer. 
- valueSerializerIBsonSerializer
- The value serializer. 
Returns
- DictionaryInterfaceImplementerSerializer<TDictionary>
- The reconfigured serializer.