Table of Contents

Method CompareTo

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

CompareTo(BsonJavaScriptWithScope)

Compares this BsonJavaScriptWithScope to another BsonJavaScriptWithScope.

public int CompareTo(BsonJavaScriptWithScope other)

Parameters

other BsonJavaScriptWithScope

The 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 BsonValue

The 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.