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.4.1
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