Class ArraySerializer<TItem>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for one-dimensional arrays.
public sealed class ArraySerializer<TItem> : EnumerableSerializerBase<TItem[], TItem>, IBsonSerializer<TItem[]>, IBsonArraySerializer, IBsonSerializer, IChildSerializerConfigurable
Type Parameters
TItem
The type of the elements.
- Inheritance
-
SerializerBase<TItem[]>EnumerableSerializerBase<TItem[], TItem>ArraySerializer<TItem>
- Implements
-
IBsonSerializer<TItem[]>
- 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.