Class ExpandoObjectSerializer

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

Namespace

MongoDB.Bson.Serialization.Serializers

Assembly

MongoDB.Bson.dll

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 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.

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.