Class EnumerableSerializerBase<TValue>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a base serializer for enumerable values.
public abstract class EnumerableSerializerBase<TValue> : SerializerBase<TValue>, IBsonSerializer<TValue>, IBsonArraySerializer, IBsonSerializer where TValue : IEnumerable
Type Parameters
TValue
The type of the value.
- Inheritance
-
SerializerBase<TValue>EnumerableSerializerBase<TValue>
- Implements
-
IBsonSerializer<TValue>
- Derived
- Inherited Members
- Extension Methods
Constructors
- EnumerableSerializerBase()
Initializes a new instance of the EnumerableSerializerBase<TValue> class.
- EnumerableSerializerBase(IBsonSerializer)
Initializes a new instance of the EnumerableSerializerBase<TValue> class.
- EnumerableSerializerBase(IBsonSerializerRegistry)
Initializes a new instance of the EnumerableSerializerBase<TValue> class.
Properties
- ItemSerializer
Gets the item serializer.
Methods
- AddItem(object, object)
Adds the item.
- CreateAccumulator()
Creates the accumulator.
- Deserialize(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a value.
- EnumerateItemsInSerializationOrder(TValue)
Enumerates the items in serialization order.
- Equals(object)
Determines whether the specified object is equal to the current object.
- FinalizeResult(object)
Finalizes the result.
- GetHashCode()
Serves as the default hash function.
- Serialize(BsonSerializationContext, BsonSerializationArgs, TValue)
Serializes a value.
- TryGetItemSerializationInfo(out BsonSerializationInfo)
Tries to get the serialization info for the individual items of the array.