Class BsonBoolean
Represents a BSON boolean value.
[Serializable]
public class BsonBoolean : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonBoolean>, IEquatable<BsonBoolean>
- Inheritance
-
Bson
Boolean
- Implements
- Inherited Members
- Extension Methods
Constructors
- Bson
Boolean(bool) Initializes a new instance of the BsonBoolean class.
Properties
- Bson
Type Gets the BsonType of this BsonValue.
- False
Gets the instance of BsonBoolean that represents false.
- Raw
Value Gets the BsonBoolean as a bool.
- True
Gets the instance of BsonBoolean that represents true.
- Value
Gets the value of this BsonBoolean.
Methods
- Compare
To(Bson Boolean) Compares this BsonBoolean to another BsonBoolean.
- Compare
To(Bson Value) Compares the BsonBoolean to another BsonValue.
- Create(object)
Returns one of the two possible BsonBoolean values.
- Equals(Bson
Boolean) Compares this BsonBoolean to another BsonBoolean.
- Equals(object)
Compares this BsonBoolean 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
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.
- To
Boolean() Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
- To
String() Returns a string representation of the value.
Operators
- operator ==(Bson
Boolean, Bson Boolean) Compares two BsonBoolean values.
- implicit operator Bson
Boolean(bool) Converts a bool to a BsonBoolean.
- operator !=(Bson
Boolean, Bson Boolean) Compares two BsonBoolean values.