Class BsonInt32
Represents a BSON int value.
[Serializable]
public class BsonInt32 : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonInt32>, IEquatable<BsonInt32>
- Inheritance
-
Bson
Int32
- Implements
- Inherited Members
- Extension Methods
Constructors
- Bson
Int32(int) Creates a new instance of the BsonInt32 class.
Properties
- Bson
Type Gets the BsonType of this BsonValue.
- Minus
One Gets an instance of BsonInt32 that represents -1.
- One
Gets an instance of BsonInt32 that represents 1.
- Raw
Value 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
- Compare
To(Bson Int32) Compares this BsonInt32 to another BsonInt32.
- Compare
To(Bson Value) Compares the BsonInt32 to another BsonValue.
- Create(object)
Creates a new BsonInt32.
- Equals(Bson
Int32) Compares this BsonInt32 to another BsonInt32.
- Equals(object)
Compares this BsonInt32 to another object.
- Get
Hash Code() Gets the hash code.
- IConvertible
Get Type Code Implementation() Implementation of the IConvertible GetTypeCode method.
- IConvertible
ToBoolean Implementation(IFormat Provider) Implementation of the IConvertible ToBoolean method.
- IConvertible
ToByte Implementation(IFormat Provider) Implementation of the IConvertible ToByte method.
- IConvertible
ToChar Implementation(IFormat Provider) Implementation of the IConvertible ToChar method.
- IConvertible
ToDecimal Implementation(IFormat Provider) Implementation of the IConvertible ToDecimal method.
- IConvertible
ToDouble Implementation(IFormat Provider) Implementation of the IConvertible ToDouble method.
- IConvertible
ToInt16 Implementation(IFormat Provider) Implementation of the IConvertible ToInt16 method.
- IConvertible
ToInt32 Implementation(IFormat Provider) Implementation of the IConvertible ToInt32 method.
- IConvertible
ToInt64 Implementation(IFormat Provider) Implementation of the IConvertible ToInt64 method.
- IConvertible
ToSByte Implementation(IFormat Provider) Implementation of the IConvertible ToSByte method.
- IConvertible
ToSingle Implementation(IFormat Provider) Implementation of the IConvertible ToSingle method.
- IConvertible
ToString Implementation(IFormat Provider) Implementation of the IConvertible ToString method.
- IConvertible
ToUInt16 Implementation(IFormat Provider) Implementation of the IConvertible ToUInt16 method.
- IConvertible
ToUInt32 Implementation(IFormat Provider) Implementation of the IConvertible ToUInt32 method.
- IConvertible
ToUInt64 Implementation(IFormat Provider) Implementation of the IConvertible ToUInt64 method.
- Operator
Equals Implementation(Bson Value) Compares this BsonInt32 against another BsonValue.
- To
Boolean() Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
- To
Decimal() Converts this BsonValue to a Decimal.
- To
Decimal128() Converts this BsonValue to a Decimal128.
- To
Double() Converts this BsonValue to a Double.
- To
Int32() Converts this BsonValue to an Int32.
- To
Int64() Converts this BsonValue to an Int64.
- To
String() Returns a string representation of the value.
Operators
- operator ==(Bson
Int32, Bson Int32) Compares two BsonInt32 values.
- implicit operator Bson
Int32(int) Converts an int to a BsonInt32.
- operator !=(Bson
Int32, Bson Int32) Compares two BsonInt32 values.