Table of Contents

Class ExpandoObjectSerializer

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

Serializer for ExpandoObject.

public sealed class ExpandoObjectSerializer : DynamicDocumentBaseSerializer<ExpandoObject>, IBsonSerializer<ExpandoObject>, IBsonSerializer
Inheritance
ExpandoObjectSerializer
Implements
Inherited Members
Extension Methods

Remarks

The use of ExpandoObject will serialize any List<T> without type information. To get the best experience out of using an ExpandoObject, any member wanting to be used as an array should use List<T>.

Constructors

ExpandoObjectSerializer()

Initializes a new instance of the ExpandoObjectSerializer class.

Methods

ConfigureDeserializationContext(Builder)

Configures the deserialization context.

ConfigureSerializationContext(Builder)

Configures the serialization context.

CreateDocument()

Creates the document.

SetValueForMember(ExpandoObject, string, object)

Sets the value for the member.

TryGetValueForMember(ExpandoObject, string, out object)

Tries to get the value for a member. Returns true if the member should be serialized.