Table of Contents

Class DiscriminatedInterfaceSerializer<TInterface>

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

Represents a serializer for Interfaces.

public class DiscriminatedInterfaceSerializer<TInterface> : SerializerBase<TInterface>, IBsonSerializer<TInterface>, IBsonDocumentSerializer, IBsonSerializer, IDiscriminatedInterfaceSerializer

Type Parameters

TInterface

The type of the interface.

Inheritance
SerializerBase<TInterface>
DiscriminatedInterfaceSerializer<TInterface>
Implements
IBsonSerializer<TInterface>
Inherited Members
Extension Methods

Constructors

DiscriminatedInterfaceSerializer()

Initializes a new instance of the DiscriminatedInterfaceSerializer<TInterface> class.

DiscriminatedInterfaceSerializer(IDiscriminatorConvention)

Initializes a new instance of the DiscriminatedInterfaceSerializer<TInterface> class.

DiscriminatedInterfaceSerializer(IDiscriminatorConvention, IBsonSerializer<TInterface>)

Initializes a new instance of the DiscriminatedInterfaceSerializer<TInterface> class.

Properties

InterfaceSerializer

Gets the interface serializer.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Equals(object)
GetHashCode()
Serialize(BsonSerializationContext, BsonSerializationArgs, TInterface)

Serializes a value.

TryGetMemberSerializationInfo(string, out BsonSerializationInfo)

Tries to get the serialization info for a member.