Class DictionaryInterfaceImplementerSerializer

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization.Serializers

Assembly

MongoDB.Bson.dll

Represents a serializer for a class that implements IDictionary.

public sealed class DictionaryInterfaceImplementerSerializer<TDictionary> : DictionarySerializerBase<TDictionary>, IBsonSerializer<TDictionary>, IBsonDocumentSerializer, IBsonSerializer, IBsonDictionarySerializer, IChildSerializerConfigurable, IMultipleChildSerializersConfigurable, IDictionaryRepresentationConfigurable where TDictionary : class, IDictionary, new()

Type Parameters

TDictionary

The type of the dictionary.

Inheritance

DictionaryInterfaceImplementerSerializer

Implements

Inherited Members

Extension Methods

Constructors

DictionaryInterfaceImplementerSerializer()

Initializes a new instance of the DictionaryInterfaceImplementerSerializer class.

DictionaryInterfaceImplementerSerializer(DictionaryRepresentation)

Initializes a new instance of the DictionaryInterfaceImplementerSerializer class.

DictionaryInterfaceImplementerSerializer(DictionaryRepresentation, IBsonSerializer, IBsonSerializer)

Initializes a new instance of the DictionaryInterfaceImplementerSerializer class.

Methods

CreateInstance()

Creates the instance.

WithDictionaryRepresentation(DictionaryRepresentation)

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

WithDictionaryRepresentation(DictionaryRepresentation, IBsonSerializer, IBsonSerializer)

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

WithKeySerializer(IBsonSerializer)

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

WithValueSerializer(IBsonSerializer)

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