Table of Contents

Class BsonInt64

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON long value.

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

Constructors

BsonInt64(long)

Initializes a new instance of the BsonInt64 class.

Properties

BsonType

Gets the BsonType of this BsonValue.

RawValue

Gets the BsonInt64 as a long.

Value

Gets the value of this BsonInt64.

Methods

CompareTo(BsonInt64)

Compares this BsonInt64 to another BsonInt64.

CompareTo(BsonValue)

Compares the BsonInt64 to another BsonValue.

Create(object)

Creates a new BsonInt64.

Equals(BsonInt64)

Compares this BsonInt64 to another BsonInt64.

Equals(object)

Compares this BsonInt64 to another object.

GetHashCode()

Gets the hash code.

IConvertibleGetTypeCodeImplementation()

Implementation of the IConvertible GetTypeCode method.

IConvertibleToBooleanImplementation(IFormatProvider)

Implementation of the IConvertible ToBoolean method.

IConvertibleToByteImplementation(IFormatProvider)

Implementation of the IConvertible ToByte method.

IConvertibleToCharImplementation(IFormatProvider)

Implementation of the IConvertible ToChar method.

IConvertibleToDecimalImplementation(IFormatProvider)

Implementation of the IConvertible ToDecimal method.

IConvertibleToDoubleImplementation(IFormatProvider)

Implementation of the IConvertible ToDouble method.

IConvertibleToInt16Implementation(IFormatProvider)

Implementation of the IConvertible ToInt16 method.

IConvertibleToInt32Implementation(IFormatProvider)

Implementation of the IConvertible ToInt32 method.

IConvertibleToInt64Implementation(IFormatProvider)

Implementation of the IConvertible ToInt64 method.

IConvertibleToSByteImplementation(IFormatProvider)

Implementation of the IConvertible ToSByte method.

IConvertibleToSingleImplementation(IFormatProvider)

Implementation of the IConvertible ToSingle method.

IConvertibleToStringImplementation(IFormatProvider)

Implementation of the IConvertible ToString method.

IConvertibleToUInt16Implementation(IFormatProvider)

Implementation of the IConvertible ToUInt16 method.

IConvertibleToUInt32Implementation(IFormatProvider)

Implementation of the IConvertible ToUInt32 method.

IConvertibleToUInt64Implementation(IFormatProvider)

Implementation of the IConvertible ToUInt64 method.

OperatorEqualsImplementation(BsonValue)

Compares this BsonInt32 against another BsonValue.

ToBoolean()

Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).

ToDecimal()

Converts this BsonValue to a Decimal.

ToDecimal128()

Converts this BsonValue to a Decimal128.

ToDouble()

Converts this BsonValue to a Double.

ToInt32()

Converts this BsonValue to an Int32.

ToInt64()

Converts this BsonValue to an Int64.

ToString()

Returns a string representation of the value.

Operators

operator ==(BsonInt64, BsonInt64)

Compares two BsonInt64 values.

implicit operator BsonInt64(long)

Converts a long to a BsonInt64.

operator !=(BsonInt64, BsonInt64)

Compares two BsonInt64 values.