Table of Contents

Method EnsureBsonTypeEquals

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

EnsureBsonTypeEquals(IBsonReader, BsonType)

Ensures that the BsonType equals the expected type.

protected void EnsureBsonTypeEquals(IBsonReader reader, BsonType bsonType)

Parameters

reader IBsonReader

The reader.

bsonType BsonType

The expected type.