Table of Contents

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 BsonType

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

representation BsonType

The 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 BsonType

The representation.

serializerRegistry IBsonSerializerRegistry

The serializer registry.