Table of Contents

Class QueueSerializer<TItem>

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

Represents a serializer for Queues.

public sealed class QueueSerializer<TItem> : EnumerableSerializerBase<Queue<TItem>, TItem>, IBsonSerializer<Queue<TItem>>, IChildSerializerConfigurable, IBsonArraySerializer, IBsonSerializer

Type Parameters

TItem

The type of the elements.

Inheritance
QueueSerializer<TItem>
Implements
Inherited Members
Extension Methods

Constructors

QueueSerializer()

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

QueueSerializer(IBsonSerializerRegistry)

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

QueueSerializer(IBsonSerializer<TItem>)

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

Methods

AddItem(object, TItem)

Adds the item.

CreateAccumulator()

Creates the accumulator.

EnumerateItemsInSerializationOrder(Queue<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.