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
bsonReaderIBsonReaderThe reader.
nominalTypeTypeThe nominal type.
Returns
- Type
 The actual type.