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