Table of Contents

Class BsonDecimal128

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON Decimal128 value.

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

Constructors

BsonDecimal128(Decimal128)

Initializes a new instance of the BsonDecimal128 class.

Properties

BsonType

Gets the BsonType of this BsonValue.

RawValue

Gets the raw value of this BsonValue (or null if this BsonValue doesn't have a single scalar value).

Value

Gets the value.

Methods

CompareTo(BsonDecimal128)

Compares this BsonDecimal128 to another BsonDecimal128.

CompareTo(BsonValue)

Compares this BsonValue to another BsonValue.

Create(object)

Creates a new instance of the BsonDecimal128 class.

Equals(BsonDecimal128)

Compares this BsonDecimal128 to another BsonDecimal128.

Equals(object)

Compares this BsonValue 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.

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)

Implementation of operator ==.

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()

Operators

operator ==(BsonDecimal128, BsonDecimal128)

Compares two BsonDecimal128 values.

implicit operator BsonDecimal128(Decimal128)

Converts a Decimal128 to a BsonDecimal128.

operator !=(BsonDecimal128, BsonDecimal128)

Compares two BsonDecimal128 values.

See Also