Table of Contents

Method GetDiscriminator

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

GetDiscriminator(Type, Type)

Gets the discriminator value for an actual type.

BsonValue GetDiscriminator(Type nominalType, Type actualType)

Parameters

nominalType Type

The nominal type.

actualType Type

The actual type.

Returns

BsonValue

The discriminator value.