Table of Contents

Class ArraySerializer<TItem>

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

Represents a serializer for one-dimensional arrays.

public class ArraySerializer<TItem> : EnumerableSerializerBase<TItem[], TItem>, IBsonSerializer<TItem[]>, IBsonArraySerializer, IBsonSerializer, IChildSerializerConfigurable

Type Parameters

TItem

The type of the elements.

Inheritance
EnumerableSerializerBase<TItem[], TItem>
ArraySerializer<TItem>
Implements
Inherited Members
Extension Methods

Constructors

ArraySerializer()

Initializes a new instance of the ArraySerializer<TItem> class.

ArraySerializer(IBsonSerializerRegistry)

Initializes a new instance of the ArraySerializer<TItem> class.

ArraySerializer(IBsonSerializer<TItem>)

Initializes a new instance of the ArraySerializer<TItem> class.

Methods

AddItem(object, TItem)

Adds the item.

CreateAccumulator()

Creates the accumulator.

EnumerateItemsInSerializationOrder(TItem[])

Enumerates the items in serialization order.

FinalizeResult(object)

Finalizes the result.

WithItemSerializer(IBsonSerializer<TItem>)

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