Table of Contents

Class ScalarDiscriminatorConvention

Namespace
MongoDB.Bson.Serialization.Conventions
Assembly
MongoDB.Bson.dll

Represents a discriminator convention where the discriminator is provided by the class map of the actual type.

public class ScalarDiscriminatorConvention : StandardDiscriminatorConvention, IDiscriminatorConvention
Inheritance
ScalarDiscriminatorConvention
Implements
Inherited Members
Extension Methods

Constructors

ScalarDiscriminatorConvention(string)

Initializes a new instance of the ScalarDiscriminatorConvention class.

Methods

GetDiscriminator(Type, Type)

Gets the discriminator value for an actual type.