Method CompareTo
CompareTo(BsonElement)
Compares this BsonElement to another BsonElement.
public int CompareTo(BsonElement other)
Parameters
other
BsonElementThe other BsonElement.
Returns
- int
A 32-bit signed integer that indicates whether this BsonElement is less than, equal to, or greather than the other.