IDiscriminatorConvention.GetActualType Method (original) (raw)
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 )
Function GetActualType ( bsonReader As IBsonReader, nominalType As Type ) As Type
abstract GetActualType : bsonReader : IBsonReader * nominalType : Type -> Type
Parameters
bsonReader
Type: MongoDB.Bson.IOIBsonReader
The reader.
nominalType
Type: SystemType
The nominal type.
Return Value
Type: Type
The actual type.
See Also