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.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
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