Table of Contents

Constructor ReadOnlyCollectionSerializer

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

ReadOnlyCollectionSerializer()

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

public ReadOnlyCollectionSerializer()

ReadOnlyCollectionSerializer(IBsonSerializer<TItem>)

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

public ReadOnlyCollectionSerializer(IBsonSerializer<TItem> itemSerializer)

Parameters

itemSerializer IBsonSerializer<TItem>

The item serializer.

ReadOnlyCollectionSerializer(IBsonSerializerRegistry)

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

public ReadOnlyCollectionSerializer(IBsonSerializerRegistry serializerRegistry)

Parameters

serializerRegistry IBsonSerializerRegistry

The serializer registry.