Constructor DictionarySerializerBase
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
DictionarySerializerBase()
Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.
public DictionarySerializerBase()
DictionarySerializerBase(DictionaryRepresentation)
Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.
public DictionarySerializerBase(DictionaryRepresentation dictionaryRepresentation)
Parameters
dictionaryRepresentation
DictionaryRepresentationThe dictionary representation.
DictionarySerializerBase(DictionaryRepresentation, IBsonSerializer<TKey>, IBsonSerializer<TValue>)
Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.
public DictionarySerializerBase(DictionaryRepresentation dictionaryRepresentation, IBsonSerializer<TKey> keySerializer, IBsonSerializer<TValue> valueSerializer)
Parameters
dictionaryRepresentation
DictionaryRepresentationThe dictionary representation.
keySerializer
IBsonSerializer<TKey>The key serializer.
valueSerializer
IBsonSerializer<TValue>The value serializer.
DictionarySerializerBase(DictionaryRepresentation, IBsonSerializerRegistry)
Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.
public DictionarySerializerBase(DictionaryRepresentation dictionaryRepresentation, IBsonSerializerRegistry serializerRegistry)
Parameters
dictionaryRepresentation
DictionaryRepresentationThe dictionary representation.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.