Class IEnumerableDeserializingAsCollectionSerializer<TIEnumerable, TItem, TCollection>
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll
Represents a serializer for IEnumerable and any other derived interface implemented by TCollection.
public sealed class IEnumerableDeserializingAsCollectionSerializer<TIEnumerable, TItem, TCollection> : SerializerBase<TIEnumerable>, IBsonSerializer<TIEnumerable>, IBsonArraySerializer, IBsonSerializer, IChildSerializerConfigurable where TIEnumerable : class, IEnumerable<TItem> where TCollection : class, ICollection<TItem>, new()
Type Parameters
TIEnumerable
The type of an IEnumerable interface.
TItem
The type of the items.
TCollection
The type of the collection used when deserializing.
Inheritance
IEnumerableDeserializingAsCollectionSerializer<TIEnumerable, TItem, TCollection>
Implements
Inherited Members
Extension Methods
Constructors
IEnumerableDeserializingAsCollectionSerializer()
Initializes a new instance of the IEnumerableDeserializingAsCollectionSerializer class.
IEnumerableDeserializingAsCollectionSerializer(IBsonSerializerRegistry)
Initializes a new instance of the IEnumerableDeserializingAsCollectionSerializer class.
IEnumerableDeserializingAsCollectionSerializer(IBsonSerializer)
Initializes a new instance of the IEnumerableDeserializingAsCollectionSerializer class.
Properties
Gets the item serializer.
Methods
Deserialize(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a value.
Determines whether the specified object is equal to the current object.
Serves as the default hash function.
Serialize(BsonSerializationContext, BsonSerializationArgs, TIEnumerable)
Serializes a value.
TryGetItemSerializationInfo(out BsonSerializationInfo)
Tries to get the serialization info for the individual items of the array.
WithItemSerializer(IBsonSerializer)
Returns a serializer that has been reconfigured with the specified item serializer.