Table of Contents

Class DiscriminatedWrapperSerializer<TValue>

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

Represents a serializer that serializes values as a discriminator/value pair.

public class DiscriminatedWrapperSerializer<TValue> : SerializerBase<TValue>, IBsonSerializer<TValue>, IBsonSerializer

Type Parameters

TValue

The type of the value.

Inheritance
DiscriminatedWrapperSerializer<TValue>
Implements
Inherited Members
Extension Methods

Constructors

DiscriminatedWrapperSerializer(IDiscriminatorConvention, IBsonSerializer<TValue>)

Initializes a new instance of the DiscriminatedWrapperSerializer<TValue> class.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

IsPositionedAtDiscriminatedWrapper(BsonDeserializationContext)

Determines whether the reader is positioned at a discriminated wrapper.

Serialize(BsonSerializationContext, BsonSerializationArgs, TValue)

Serializes a value.