Table of Contents

Class StackSerializer<TItem>

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

Represents a serializer for Stacks.

public sealed class StackSerializer<TItem> : EnumerableSerializerBase<Stack<TItem>, TItem>, IBsonSerializer<Stack<TItem>>, IChildSerializerConfigurable, IBsonArraySerializer, IBsonSerializer

Type Parameters

TItem

The type of the elements.

Inheritance
StackSerializer<TItem>
Implements
Inherited Members
Extension Methods

Constructors

StackSerializer()

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

StackSerializer(IBsonSerializerRegistry)

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

StackSerializer(IBsonSerializer<TItem>)

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

Methods

AddItem(object, TItem)

Adds the item.

CreateAccumulator()

Creates the accumulator.

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