Click or drag to resize

QueueSerializer<TItem> Class

Represents a serializer for Queues.
Inheritance Hierarchy
System.Object
  MongoDB.Bson.Serialization.Serializers.SerializerBase<Queue<TItem>>
    MongoDB.Bson.Serialization.Serializers.EnumerableSerializerBase<Queue<TItem>, TItem>
      MongoDB.Bson.Serialization.Serializers.QueueSerializer<TItem>

Namespace:  MongoDB.Bson.Serialization.Serializers
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public class QueueSerializer<TItem> : EnumerableSerializerBase<Queue<TItem>, TItem>, 
	IChildSerializerConfigurable, IBsonArraySerializer, IBsonSerializer

Type Parameters

TItem
The type of the elements.

The QueueSerializer< TItem> type exposes the following members.

Constructors
  NameDescription
Public methodQueueSerializer<TItem>()
Initializes a new instance of the QueueSerializer< TItem> class.
Public methodQueueSerializer<TItem>(IBsonSerializer<TItem>)
Initializes a new instance of the QueueSerializer< TItem> class.
Public methodQueueSerializer<TItem>(IBsonSerializerRegistry)
Initializes a new instance of the QueueSerializer< TItem> class.
Top
Properties
Methods
  NameDescription
Protected methodAddItem
Adds the item.
(Overrides EnumerableSerializerBase<TValue, TItem>.AddItem(Object, TItem).)
Protected methodCreateAccumulator
Creates the accumulator.
(Overrides EnumerableSerializerBase<TValue, TItem>.CreateAccumulator().)
Protected methodCreateCannotBeDeserializedException
Creates an exception to throw when a type cannot be deserialized.
(Inherited from SerializerBase<TValue>.)
Protected methodCreateCannotBeSerializedException
Creates an exception to throw when a type cannot be deserialized.
(Inherited from SerializerBase<TValue>.)
Protected methodCreateCannotDeserializeFromBsonTypeException
Creates an exception to throw when a type cannot be deserialized from a BsonType.
(Inherited from SerializerBase<TValue>.)
Public methodDeserialize
Deserializes a value.
(Inherited from EnumerableSerializerBase<TValue, TItem>.)
Protected methodEnsureBsonTypeEquals
Ensures that the BsonType equals the expected type.
(Inherited from SerializerBase<TValue>.)
Protected methodEnumerateItemsInSerializationOrder
Enumerates the items in serialization order.
(Overrides EnumerableSerializerBase<TValue, TItem>.EnumerateItemsInSerializationOrder(TValue).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodFinalizeResult
Finalizes the result.
(Overrides EnumerableSerializerBase<TValue, TItem>.FinalizeResult(Object).)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSerialize
Serializes a value.
(Inherited from EnumerableSerializerBase<TValue, TItem>.)
Public methodToString (Inherited from Object.)
Public methodTryGetItemSerializationInfo
Tries to get the serialization info for the individual items of the array.
(Inherited from EnumerableSerializerBase<TValue, TItem>.)
Public methodWithItemSerializer
Returns a serializer that has been reconfigured with the specified item serializer.
Top
Extension Methods
  NameDescription
Public Extension MethodDeserialize
Deserializes a value.
(Defined by IBsonSerializerExtensions.)
Public Extension MethodSerialize
Serializes a value.
(Defined by IBsonSerializerExtensions.)
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonValue
Converts a value to a BsonValue by serializing it.
(Defined by IBsonSerializerExtensions.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also