Table of Contents

Class DictionarySerializerBase<TDictionary>

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

Represents a serializer for dictionaries.

public abstract class DictionarySerializerBase<TDictionary> : ClassSerializerBase<TDictionary>, IBsonSerializer<TDictionary>, IBsonDocumentSerializer, IBsonSerializer, IBsonDictionarySerializer where TDictionary : class, IDictionary

Type Parameters

TDictionary

The type of the dictionary.

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

Constructors

DictionarySerializerBase()

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

DictionarySerializerBase(DictionaryRepresentation)

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

DictionarySerializerBase(DictionaryRepresentation, IBsonSerializer, IBsonSerializer)

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

Properties

DictionaryRepresentation

Gets the dictionary representation.

KeySerializer

Gets the key serializer.

ValueSerializer

Gets the value serializer.

Methods

CreateInstance()

Creates the instance.

DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Equals(object)
GetHashCode()
SerializeValue(BsonSerializationContext, BsonSerializationArgs, TDictionary)

Serializes a value.

TryGetMemberSerializationInfo(string, out BsonSerializationInfo)

Tries to get the serialization info for a member.