Table of Contents

Class ReadOnlyCollectionSerializer<TItem>

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

Represents a serializer for readonly collection.

public class ReadOnlyCollectionSerializer<TItem> : EnumerableInterfaceImplementerSerializerBase<ReadOnlyCollection<TItem>, TItem>, IBsonSerializer<ReadOnlyCollection<TItem>>, IBsonArraySerializer, IBsonSerializer

Type Parameters

TItem

The type of the item.

Inheritance
ReadOnlyCollectionSerializer<TItem>
Implements
Inherited Members
Extension Methods

Constructors

ReadOnlyCollectionSerializer()

Initializes a new instance of the ReadOnlyCollectionSerializer<TItem> class.

ReadOnlyCollectionSerializer(IBsonSerializerRegistry)

Initializes a new instance of the ReadOnlyCollectionSerializer<TItem> class.

ReadOnlyCollectionSerializer(IBsonSerializer<TItem>)

Initializes a new instance of the ReadOnlyCollectionSerializer<TItem> class.

Methods

CreateAccumulator()

Creates the accumulator.

FinalizeResult(object)

Finalizes the result.

WithItemSerializer(IBsonSerializer<TItem>)

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