Table of Contents

Constructor DiscriminatedInterfaceSerializer

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

DiscriminatedInterfaceSerializer()

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

public DiscriminatedInterfaceSerializer()

DiscriminatedInterfaceSerializer(IDiscriminatorConvention)

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

public DiscriminatedInterfaceSerializer(IDiscriminatorConvention discriminatorConvention)

Parameters

discriminatorConvention IDiscriminatorConvention

The discriminator convention.

Exceptions

ArgumentException

interfaceType

ArgumentNullException

interfaceType

DiscriminatedInterfaceSerializer(IDiscriminatorConvention, IBsonSerializer<TInterface>)

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

public DiscriminatedInterfaceSerializer(IDiscriminatorConvention discriminatorConvention, IBsonSerializer<TInterface> interfaceSerializer)

Parameters

discriminatorConvention IDiscriminatorConvention

The discriminator convention.

interfaceSerializer IBsonSerializer<TInterface>

The interface serializer (necessary to support LINQ queries).

Exceptions

ArgumentException

interfaceType

ArgumentNullException

interfaceType