Class BsonDecimal128
Represents a BSON Decimal128 value.
[Serializable]
public class BsonDecimal128 : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDecimal128>, IEquatable<BsonDecimal128>
- Inheritance
-
Bson
Decimal128
- Implements
- Inherited Members
- Extension Methods
Constructors
BsonDecimal128(Decimal128)
Initializes a new instance of the Bson
Parameters
value
Decimal128The value.
- See Also
Properties
BsonType
Gets the BsonType of this BsonValue.
Property Value
- See Also
RawValue
Gets the raw value of this BsonValue (or null if this BsonValue doesn't have a single scalar value).
Property Value
- See Also
Value
Gets the value.
Property Value
- See Also
Methods
CompareTo(BsonDecimal128)
Compares this BsonDecimal128 to another BsonDecimal128.
Parameters
other
BsonDecimal128 The other BsonDecimal128.
Returns
- int
A 32-bit signed integer that indicates whether this BsonDecimal128 is less than, equal to, or greather than the other.
- See Also
CompareTo(BsonValue)
Compares this BsonValue to another BsonValue.
Parameters
other
BsonValue The other BsonValue.
Returns
- int
A 32-bit signed integer that indicates whether this BsonValue is less than, equal to, or greather than the other BsonValue.
- See Also
Create(object)
Creates a new instance of the BsonDecimal128 class.
Parameters
value
objectAn object to be mapped to a BsonDecimal128.
Returns
- Bson
Decimal128 A BsonDecimal128.
- See Also
Equals(BsonDecimal128)
Compares this BsonDecimal128 to another BsonDecimal128.
Parameters
rhs
BsonDecimal128 The other BsonDecimal128.
Returns
- bool
True if the two BsonDecimal128 values are equal.
- See Also
Equals(object)
Compares this BsonValue to another object.
Parameters
obj
objectThe other object.
Returns
- bool
True if the other object is a BsonValue and equal to this one.
- See Also
GetHashCode()
Gets the hash code.
Returns
- int
The hash code.
- See Also
IConvertibleGetTypeCodeImplementation()
Implementation of the IConvertible GetTypeCode method.
Returns
- Type
Code The TypeCode.
- See Also
IConvertibleToBooleanImplementation(IFormatProvider)
Implementation of the IConvertible ToBoolean method.
Parameters
provider
IFormatProvider The format provider.
Returns
- bool
A bool.
- See Also
IConvertibleToByteImplementation(IFormatProvider)
Implementation of the IConvertible ToByte method.
Parameters
provider
IFormatProvider The format provider.
Returns
- byte
A byte.
- See Also
IConvertibleToDecimalImplementation(IFormatProvider)
Implementation of the IConvertible ToDecimal method.
Parameters
provider
IFormatProvider The format provider.
Returns
- decimal
A decimal.
- See Also
IConvertibleToDoubleImplementation(IFormatProvider)
Implementation of the IConvertible ToDouble method.
Parameters
provider
IFormatProvider The format provider.
Returns
- double
A double.
- See Also
IConvertibleToInt16Implementation(IFormatProvider)
Implementation of the IConvertible ToInt16 method.
Parameters
provider
IFormatProvider The format provider.
Returns
- short
A short.
- See Also
IConvertibleToInt32Implementation(IFormatProvider)
Implementation of the IConvertible ToInt32 method.
Parameters
provider
IFormatProvider The format provider.
Returns
- int
An int.
- See Also
IConvertibleToInt64Implementation(IFormatProvider)
Implementation of the IConvertible ToInt64 method.
Parameters
provider
IFormatProvider The format provider.
Returns
- long
A long.
- See Also
IConvertibleToSByteImplementation(IFormatProvider)
Implementation of the IConvertible ToSByte method.
Parameters
provider
IFormatProvider The format provider.
Returns
- sbyte
An sbyte.
- See Also
IConvertibleToSingleImplementation(IFormatProvider)
Implementation of the IConvertible ToSingle method.
Parameters
provider
IFormatProvider The format provider.
Returns
- float
A float.
- See Also
IConvertibleToStringImplementation(IFormatProvider)
Implementation of the IConvertible ToString method.
Parameters
provider
IFormatProvider The format provider.
Returns
- string
A string.
- See Also
IConvertibleToUInt16Implementation(IFormatProvider)
Implementation of the IConvertible ToUInt16 method.
Parameters
provider
IFormatProvider The format provider.
Returns
- ushort
A ushort.
- See Also
IConvertibleToUInt32Implementation(IFormatProvider)
Implementation of the IConvertible ToUInt32 method.
Parameters
provider
IFormatProvider The format provider.
Returns
- uint
A uint.
- See Also
IConvertibleToUInt64Implementation(IFormatProvider)
Implementation of the IConvertible ToUInt64 method.
Parameters
provider
IFormatProvider The format provider.
Returns
- ulong
A ulong.
- See Also
OperatorEqualsImplementation(BsonValue)
Implementation of operator ==.
Parameters
rhs
BsonValue The other BsonValue.
Returns
- bool
True if the two BsonValues are equal according to ==.
- See Also
ToBoolean()
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
Returns
- bool
A Boolean.
- See Also
ToDecimal()
Converts this BsonValue to a Decimal.
Returns
- decimal
A Decimal.
- See Also
ToDecimal128()
Converts this BsonValue to a Decimal128.
Returns
- Decimal128
A Decimal128.
- See Also
ToDouble()
Converts this BsonValue to a Double.
Returns
- double
A Double.
- See Also
ToInt32()
Converts this BsonValue to an Int32.
Returns
- int
An Int32.
- See Also
ToInt64()
Converts this BsonValue to an Int64.
Returns
- long
An Int64.
- See Also
ToString()
Returns
- See Also
Operators
operator ==(BsonDecimal128, BsonDecimal128)
Compares two BsonDecimal128 values.
Parameters
lhs
BsonDecimal128 The first BsonDecimal128.
rhs
BsonDecimal128 The other BsonDecimal128.
Returns
- bool
True if the two BsonDecimal128 values are equal according to ==.
- See Also
implicit operator BsonDecimal128(Decimal128)
Converts a Decimal128 to a BsonDecimal128.
Parameters
value
Decimal128A Decimal128.
Returns
- Bson
Decimal128 A BsonDecimal128.
- See Also
operator !=(BsonDecimal128, BsonDecimal128)
Compares two BsonDecimal128 values.
Parameters
lhs
BsonDecimal128 The first BsonDecimal128.
rhs
BsonDecimal128 The other BsonDecimal128.
Returns
- bool
True if the two BsonDecimal128 values are not equal according to ==.
- See Also