Table of Contents

Class BsonJavaScript

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON JavaScript value.

[Serializable]
public class BsonJavaScript : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonJavaScript>, IEquatable<BsonJavaScript>
Inheritance
BsonJavaScript
Implements
Derived
Inherited Members
Extension Methods

Constructors

BsonJavaScript(string)

Initializes a new instance of the BsonJavaScript class.

Properties

BsonType

Gets the BsonType of this BsonValue.

Code

Gets the JavaScript code.

Methods

CompareTo(BsonJavaScript)

Compares this BsonJavaScript to another BsonJavaScript.

CompareTo(BsonValue)

Compares the BsonJavaScript to another BsonValue.

Create(object)

Creates a new BsonJavaScript.

Equals(BsonJavaScript)

Compares this BsonJavaScript to another BsonJavaScript.

Equals(object)

Compares this BsonJavaScript to another object.

GetHashCode()

Gets the hash code.

ToString()

Returns a string representation of the value.

Operators

operator ==(BsonJavaScript, BsonJavaScript)

Compares two BsonJavaScript values.

implicit operator BsonJavaScript(string)

Converts a string to a BsonJavaScript.

operator !=(BsonJavaScript, BsonJavaScript)

Compares two BsonJavaScript values.