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
representation
BsonTypeThe 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
representation
BsonTypeThe representation.
keySerializer
IBsonSerializer<TKey>The key serializer.
valueSerializer
IBsonSerializer<TValue>The value serializer.
KeyValuePairSerializer(BsonType, IBsonSerializerRegistry)
Initializes a new instance of the KeyValuePairSerializer<TKey, TValue> class.
public KeyValuePairSerializer(BsonType representation, IBsonSerializerRegistry serializerRegistry)
Parameters
representation
BsonTypeThe representation.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.