StandardDiscriminatorConventionGetActualType Method |
Gets the actual type of an object by reading the discriminator from a BsonReader.
Namespace: MongoDB.Bson.Serialization.ConventionsAssembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.2.0
Syntax public Type GetActualType(
IBsonReader bsonReader,
Type nominalType
)
Public Function GetActualType (
bsonReader As IBsonReader,
nominalType As Type
) As Type
abstract GetActualType :
bsonReader : IBsonReader *
nominalType : Type -> Type
override GetActualType :
bsonReader : IBsonReader *
nominalType : Type -> Type
Parameters
- bsonReader
- Type: MongoDB.Bson.IOIBsonReader
The reader. - nominalType
- Type: SystemType
The nominal type.
Return Value
Type:
TypeThe actual type.
Implements
IDiscriminatorConventionGetActualType(IBsonReader, Type)See Also