Table of Contents

Class StandardDiscriminatorConvention

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

Represents the standard discriminator conventions (see ScalarDiscriminatorConvention and HierarchicalDiscriminatorConvention).

public abstract class StandardDiscriminatorConvention : IDiscriminatorConvention
Inheritance
StandardDiscriminatorConvention
Implements
Derived
Inherited Members
Extension Methods

Constructors

StandardDiscriminatorConvention(string)

Initializes a new instance of the StandardDiscriminatorConvention class.

Properties

ElementName

Gets the discriminator element name.

Hierarchical

Gets an instance of the HierarchicalDiscriminatorConvention.

Scalar

Gets an instance of the ScalarDiscriminatorConvention.

Methods

Equals(object)
GetActualType(IBsonReader, Type)

Gets the actual type of an object by reading the discriminator from a BsonReader.

GetDiscriminator(Type, Type)

Gets the discriminator value for an actual type.

GetHashCode()