Click or drag to resize

SerializerBaseTValueEnsureBsonTypeEquals Method

Ensures that the BsonType equals the expected type.

Namespace:  MongoDB.Bson.Serialization.Serializers
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
protected void EnsureBsonTypeEquals(
	IBsonReader reader,
	BsonType bsonType
)

Parameters

reader
Type: MongoDB.Bson.IOIBsonReader
The reader.
bsonType
Type: MongoDB.BsonBsonType
The expected type.
See Also