Table of Contents

Method VerifyBsonType

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

VerifyBsonType(string, BsonType)

Verifies the current state and BsonType of the reader.

protected void VerifyBsonType(string methodName, BsonType requiredBsonType)

Parameters

methodName string

The name of the method calling this one.

requiredBsonType BsonType

The required BSON type.