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
representationBsonTypeThe 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
representationBsonTypeThe 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
representationBsonTypeThe representation.
serializerRegistryIBsonSerializerRegistryThe serializer registry.