Click or drag to resize

StandardDiscriminatorConventionGetActualType 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.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
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