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
IBsonReaderThe reader.
nominalType
TypeThe nominal type.
Returns
- Type
The actual type.