Table of Contents

Class BsonValueCSharpNullArraySerializer<TBsonValue>

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

Represents a serializer for a BsonValue that can round trip C# null and implements IBsonArraySerializer.

public class BsonValueCSharpNullArraySerializer<TBsonValue> : BsonValueCSharpNullSerializer<TBsonValue>, IBsonSerializer<TBsonValue>, IBsonArraySerializer, IBsonSerializer where TBsonValue : BsonValue

Type Parameters

TBsonValue

The type of the bson value.

Inheritance
SerializerBase<TBsonValue>
BsonValueCSharpNullArraySerializer<TBsonValue>
Implements
IBsonSerializer<TBsonValue>
Inherited Members
Extension Methods

Constructors

BsonValueCSharpNullArraySerializer(IBsonSerializer<TBsonValue>)

Initializes a new instance of the BsonValueCSharpNullArraySerializer<TBsonValue> class.

public BsonValueCSharpNullArraySerializer(IBsonSerializer<TBsonValue> wrappedSerializer)

Parameters

wrappedSerializer IBsonSerializer<TBsonValue>

The wrapped serializer.

Methods

TryGetItemSerializationInfo(out BsonSerializationInfo)

Tries to get the serialization info for the individual items of the array.

public bool TryGetItemSerializationInfo(out BsonSerializationInfo serializationInfo)

Parameters

serializationInfo BsonSerializationInfo

The serialization information.

Returns

bool

true if the serialization info exists; otherwise false.