Class DiscriminatedWrapperSerializer<TValue>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer that serializes values as a discriminator/value pair.
public sealed class DiscriminatedWrapperSerializer<TValue> : SerializerBase<TValue>, IBsonSerializer<TValue>, IBsonSerializer
Type Parameters
TValue
The type of the value.
- Inheritance
-
SerializerBase<TValue>DiscriminatedWrapperSerializer<TValue>
- Implements
-
IBsonSerializer<TValue>
- 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.
- Equals(object)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.
- IsPositionedAtDiscriminatedWrapper(BsonDeserializationContext)
Determines whether the reader is positioned at a discriminated wrapper.
- Serialize(BsonSerializationContext, BsonSerializationArgs, TValue)
Serializes a value.