Table of Contents

Method GetActualType

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

GetActualType(IBsonReader, Type)

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

Type GetActualType(IBsonReader bsonReader, Type nominalType)

Parameters

bsonReader IBsonReader

The reader.

nominalType Type

The nominal type.

Returns

Type

The actual type.