Table of Contents

Class DictionarySerializerBase<TDictionary, TKey, TValue>

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Represents a serializer for dictionaries.

public abstract class DictionarySerializerBase<TDictionary, TKey, TValue> : ClassSerializerBase<TDictionary>, IBsonSerializer<TDictionary>, IBsonArraySerializer, IBsonDocumentSerializer, IBsonSerializer, IBsonDictionarySerializer where TDictionary : class, IEnumerable<KeyValuePair<TKey, TValue>>

Type Parameters

TDictionary

The type of the dictionary.

TKey

The type of the keys.

TValue

The type of the values.

Inheritance
SerializerBase<TDictionary>
ClassSerializerBase<TDictionary>
DictionarySerializerBase<TDictionary, TKey, TValue>
Implements
IBsonSerializer<TDictionary>
Derived
Inherited Members
Extension Methods

Constructors

DictionarySerializerBase()

Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.

DictionarySerializerBase(DictionaryRepresentation)

Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.

DictionarySerializerBase(DictionaryRepresentation, IBsonSerializerRegistry)

Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.

DictionarySerializerBase(DictionaryRepresentation, IBsonSerializer<TKey>, IBsonSerializer<TValue>)

Initializes a new instance of the DictionarySerializerBase<TDictionary, TKey, TValue> class.

Properties

DictionaryRepresentation

Gets the dictionary representation.

KeySerializer

Gets the key serializer.

ValueSerializer

Gets the value serializer.

Methods

CreateAccumulator()

Creates an accumulator.

DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Equals(object)

Determines whether the specified object is equal to the current object.

FinalizeAccumulator(ICollection<KeyValuePair<TKey, TValue>>)

Finalizes an accumulator.

GetHashCode()

Serves as the default hash function.

SerializeValue(BsonSerializationContext, BsonSerializationArgs, TDictionary)

Serializes a value.

TryGetItemSerializationInfo(out BsonSerializationInfo)

Tries to get the serialization info for the individual items of the array.

TryGetMemberSerializationInfo(string, out BsonSerializationInfo)

Tries to get the serialization info for a member.