Table of Contents

Method LookupActualType

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

LookupActualType(Type, BsonValue)

Looks up the actual type of an object to be deserialized.

public static Type LookupActualType(Type nominalType, BsonValue discriminator)

Parameters

nominalType Type

The nominal type of the object.

discriminator BsonValue

The discriminator.

Returns

Type

The actual type of the object.