Constructor KeyValuePairSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
KeyValuePairSerializer()
Initializes a new instance of the KeyValuePairSerializer<TKey, TValue> class.
public KeyValuePairSerializer()KeyValuePairSerializer(BsonType)
Initializes a new instance of the KeyValuePairSerializer<TKey, TValue> class.
public KeyValuePairSerializer(BsonType representation)Parameters
- representationBsonType
- The representation. 
KeyValuePairSerializer(BsonType, IBsonSerializer<TKey>, IBsonSerializer<TValue>)
Initializes a new instance of the KeyValuePairSerializer<TKey, TValue> class.
public KeyValuePairSerializer(BsonType representation, IBsonSerializer<TKey> keySerializer, IBsonSerializer<TValue> valueSerializer)Parameters
- representationBsonType
- The representation. 
- keySerializerIBsonSerializer<TKey>
- The key serializer. 
- valueSerializerIBsonSerializer<TValue>
- The value serializer. 
KeyValuePairSerializer(BsonType, IBsonSerializerRegistry)
Initializes a new instance of the KeyValuePairSerializer<TKey, TValue> class.
public KeyValuePairSerializer(BsonType representation, IBsonSerializerRegistry serializerRegistry)Parameters
- representationBsonType
- The representation. 
- serializerRegistryIBsonSerializerRegistry
- The serializer registry.