Click or drag to resize

IDiscriminatorConventionGetActualType 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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
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.
See Also