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.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
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