Method EnsureBsonTypeEquals
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
EnsureBsonTypeEquals(IBsonReader, BsonType)
Ensures that the BsonType equals the expected type.
protected void EnsureBsonTypeEquals(IBsonReader reader, BsonType bsonType)
Parameters
reader
IBsonReaderThe reader.
bsonType
BsonTypeThe expected type.