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