SerializerBaseTValueEnsureBsonTypeEquals Method |
Ensures that the BsonType equals the expected type.
Namespace:
MongoDB.Bson.Serialization.Serializers
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax protected void EnsureBsonTypeEquals(
IBsonReader reader,
BsonType bsonType
)
Protected Sub EnsureBsonTypeEquals (
reader As IBsonReader,
bsonType As BsonType
)
member EnsureBsonTypeEquals :
reader : IBsonReader *
bsonType : BsonType -> unit
Parameters
- reader
- Type: MongoDB.Bson.IOIBsonReader
The reader. - bsonType
- Type: MongoDB.BsonBsonType
The expected type.
See Also