Table of Contents

Class IEnumerableDeserializingAsCollectionSerializer<TIEnumerable, TItem, TCollection>

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

Represents a serializer for IEnumerable and any other derived interface implemented by TCollection.

public 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
SerializerBase<TIEnumerable>
IEnumerableDeserializingAsCollectionSerializer<TIEnumerable, TItem, TCollection>
Implements
IBsonSerializer<TIEnumerable>
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<TItem>)

Initializes a new instance of the IEnumerableDeserializingAsCollectionSerializer class.

Properties

ItemSerializer

Gets the item serializer.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Equals(object)
GetHashCode()
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<TItem>)

Returns a serializer that has been reconfigured with the specified item serializer.