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.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
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