Table of Contents

Method CompareTo

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

CompareTo(BsonElement)

Compares this BsonElement to another BsonElement.

public int CompareTo(BsonElement other)

Parameters

other BsonElement

The other BsonElement.

Returns

int

A 32-bit signed integer that indicates whether this BsonElement is less than, equal to, or greather than the other.