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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
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