Table of Contents

Class BsonBoolean

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON boolean value.

public class BsonBoolean : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonBoolean>, IEquatable<BsonBoolean>
Inheritance
BsonBoolean
Implements
Inherited Members
Extension Methods

Constructors

BsonBoolean(bool)

Initializes a new instance of the BsonBoolean class.

Properties

BsonType

Gets the BsonType of this BsonValue.

False

Gets the instance of BsonBoolean that represents false.

True

Gets the instance of BsonBoolean that represents true.

Value

Gets the value of this BsonBoolean.

Methods

CompareTo(BsonBoolean)

Compares this BsonBoolean to another BsonBoolean.

CompareTo(BsonValue)

Compares the BsonBoolean to another BsonValue.

Create(object)

Returns one of the two possible BsonBoolean values.

Equals(BsonBoolean)

Compares this BsonBoolean to another BsonBoolean.

Equals(object)

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

ToBoolean()

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

ToString()

Returns a string representation of the value.

Operators

operator ==(BsonBoolean, BsonBoolean)

Compares two BsonBoolean values.

implicit operator BsonBoolean(bool)

Converts a bool to a BsonBoolean.

operator !=(BsonBoolean, BsonBoolean)

Compares two BsonBoolean values.