Method GetActualType
| MongoDB CSharp Driver API Reference (original) (raw)
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.
public Type GetActualType(IBsonReader bsonReader, Type nominalType)
Parameters
bsonReader
IBsonReader
The reader.
nominalType
Type
The nominal type.
Returns
The actual type.