Table of Contents

Class EnumerableSerializerBase<TValue, TItem>

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

Represents a serializer for enumerable values.

public abstract class EnumerableSerializerBase<TValue, TItem> : SerializerBase<TValue>, IBsonSerializer<TValue>, IBsonArraySerializer, IBsonSerializer where TValue : class, IEnumerable<TItem>

Type Parameters

TValue

The type of the value.

TItem

The type of the items.

Inheritance
EnumerableSerializerBase<TValue, TItem>
Implements
Derived
Inherited Members
Extension Methods

Constructors

EnumerableSerializerBase()

Initializes a new instance of the EnumerableSerializerBase<TValue, TItem> class.

EnumerableSerializerBase(IBsonSerializerRegistry)

Initializes a new instance of the EnumerableSerializerBase<TValue, TItem> class.

EnumerableSerializerBase(IBsonSerializer<TItem>)

Initializes a new instance of the EnumerableSerializerBase<TValue, TItem> class.

Properties

ItemSerializer

Gets the item serializer.

Methods

AddItem(object, TItem)

Adds the item.

CreateAccumulator()

Creates the accumulator.

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

EnumerateItemsInSerializationOrder(TValue)

Enumerates the items in serialization order.

FinalizeResult(object)

Finalizes the result.

Serialize(BsonSerializationContext, BsonSerializationArgs, TValue)

Serializes a value.

TryGetItemSerializationInfo(out BsonSerializationInfo)

Tries to get the serialization info for the individual items of the array.