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