Click or drag to resize

ObjectDiscriminatorConventionGetActualType Method

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

Namespace:  MongoDB.Bson.Serialization.Conventions
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public Type GetActualType(
	IBsonReader bsonReader,
	Type nominalType
)

Parameters

bsonReader
Type: MongoDB.Bson.IOIBsonReader
The reader.
nominalType
Type: SystemType
The nominal type.

Return Value

Type: Type
The actual type.

Implements

IDiscriminatorConventionGetActualType(IBsonReader, Type)
See Also