Table of Contents

Class ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>

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

Represents a serializer for a class that implements IDictionary<TKey, TValue>.

public sealed class ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> : DictionarySerializerBase<TDictionary, TKey, TValue>, IBsonSerializer<TDictionary>, IBsonArraySerializer, IBsonDocumentSerializer, IBsonSerializer, IBsonDictionarySerializer, IChildSerializerConfigurable, IDictionaryRepresentationConfigurable<ReadOnlyDictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>>, IDictionaryRepresentationConfigurable where TDictionary : class, IReadOnlyDictionary<TKey, TValue>

Type Parameters

TDictionary

The type of the dictionary.

TKey

The type of the key.

TValue

The type of the value.

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

Constructors

ReadOnlyDictionaryInterfaceImplementerSerializer()

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

ReadOnlyDictionaryInterfaceImplementerSerializer(DictionaryRepresentation)

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

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

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

Methods

CreateAccumulator()

Creates an accumulator.

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

Finalizes an accumulator.

WithDictionaryRepresentation(DictionaryRepresentation)

Returns a serializer that has been reconfigured with the specified dictionary representation.

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

Returns a serializer that has been reconfigured with the specified dictionary representation and key value serializers.

WithKeySerializer(IBsonSerializer<TKey>)

Returns a serializer that has been reconfigured with the specified key serializer.

WithValueSerializer(IBsonSerializer<TValue>)

Returns a serializer that has been reconfigured with the specified value serializer.