Table of Contents

Class BsonInt32

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON int value.

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

Constructors

BsonInt32(int)

Creates a new instance of the BsonInt32 class.

Properties

BsonType

Gets the BsonType of this BsonValue.

MinusOne

Gets an instance of BsonInt32 that represents -1.

One

Gets an instance of BsonInt32 that represents 1.

RawValue

Gets the BsonInt32 as an int.

Three

Gets an instance of BsonInt32 that represents 3.

Two

Gets an instance of BsonInt32 that represents 2.

Value

Gets the value of this BsonInt32.

Zero

Gets an instance of BsonInt32 that represents -0.

Methods

CompareTo(BsonInt32)

Compares this BsonInt32 to another BsonInt32.

CompareTo(BsonValue)

Compares the BsonInt32 to another BsonValue.

Create(object)

Creates a new BsonInt32.

Equals(BsonInt32)

Compares this BsonInt32 to another BsonInt32.

Equals(object)

Compares this BsonInt32 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 ==(BsonInt32, BsonInt32)

Compares two BsonInt32 values.

implicit operator BsonInt32(int)

Converts an int to a BsonInt32.

operator !=(BsonInt32, BsonInt32)

Compares two BsonInt32 values.