SequoiaDB
 All Classes Namespaces Files Functions Variables Enumerations Properties Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | List of all members
SequoiaDB.Bson.BsonValue Class Referenceabstract

Represents a BSON value (this is an abstract class, see the various subclasses). More...

Inheritance diagram for SequoiaDB.Bson.BsonValue:
SequoiaDB.Bson.BsonArray SequoiaDB.Bson.BsonBinaryData SequoiaDB.Bson.BsonBoolean SequoiaDB.Bson.BsonDateTime SequoiaDB.Bson.BsonDecimal SequoiaDB.Bson.BsonDocument SequoiaDB.Bson.BsonDocumentWrapper SequoiaDB.Bson.BsonDouble SequoiaDB.Bson.BsonInt32 SequoiaDB.Bson.BsonInt64 SequoiaDB.Bson.BsonJavaScript SequoiaDB.Bson.BsonMaxKey SequoiaDB.Bson.BsonMinKey SequoiaDB.Bson.BsonNull SequoiaDB.Bson.BsonObjectId SequoiaDB.Bson.BsonRegularExpression SequoiaDB.Bson.BsonString SequoiaDB.Bson.BsonSymbol SequoiaDB.Bson.BsonTimestamp SequoiaDB.Bson.BsonUndefined

Public Member Functions

virtual BsonValue Clone ()
 Creates a shallow clone of the BsonValue (see also DeepClone).
 
abstract int CompareTo (BsonValue other)
 Compares this BsonValue to another BsonValue.
 
int CompareTypeTo (BsonValue other)
 Compares the type of this BsonValue to the type of another BsonValue.
 
virtual BsonValue DeepClone ()
 Creates a deep clone of the BsonValue (see also Clone).
 
bool Equals (BsonValue rhs)
 Compares this BsonValue to another BsonValue.
 
override bool Equals (object obj)
 Compares this BsonValue to another object.
 
override int GetHashCode ()
 Gets the hash code.
 
bool ToBoolean ()
 Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
 
double ToDouble ()
 Converts this BsonValue to a Double.
 
int ToInt32 ()
 Converts this BsonValue to an Int32.
 
long ToInt64 ()
 Converts this BsonValue to an Int64.
 
void WriteTo (BsonWriter bsonWriter)
 Writes the BsonValue to a BsonWriter.
 

Static Public Member Functions

static operator bool (BsonValue value)
 Casts a BsonValue to a bool.
 
static operator bool? (BsonValue value)
 Casts a BsonValue to a bool?.
 
static implicit operator BsonValue (bool value)
 Converts a bool to a BsonValue.
 
static implicit operator BsonValue (bool?value)
 Converts a bool? to a BsonValue.
 
static implicit operator BsonValue (byte[] value)
 Converts a byte[] to a BsonValue.
 
static implicit operator BsonValue (DateTime value)
 Converts a DateTime to a BsonValue.
 
static implicit operator BsonValue (DateTime?value)
 Converts a DateTime? to a BsonValue.
 
static implicit operator BsonValue (double value)
 Converts a double to a BsonValue.
 
static implicit operator BsonValue (double?value)
 Converts a double? to a BsonValue.
 
static implicit operator BsonValue (Enum value)
 Converts an Enum to a BsonValue.
 
static implicit operator BsonValue (Guid value)
 Converts a Guid to a BsonValue.
 
static implicit operator BsonValue (Guid?value)
 Converts a Guid? to a BsonValue.
 
static implicit operator BsonValue (int value)
 Converts an int to a BsonValue.
 
static implicit operator BsonValue (int?value)
 Converts an int? to a BsonValue.
 
static implicit operator BsonValue (long value)
 Converts a long to a BsonValue.
 
static implicit operator BsonValue (long?value)
 Converts a long? to a BsonValue.
 
static implicit operator BsonValue (decimal value)
 Converts a decimal to a BsonValue.
 
static implicit operator BsonValue (decimal?value)
 Converts a decimal? to a BsonValue.
 
static implicit operator BsonValue (ObjectId value)
 Converts an ObjectId to a BsonValue.
 
static implicit operator BsonValue (ObjectId?value)
 Converts an ObjectId? to a BsonValue.
 
static implicit operator BsonValue (Regex value)
 Converts a Regex to a BsonValue.
 
static implicit operator BsonValue (string value)
 Converts a string to a BsonValue.
 
static operator byte[] (BsonValue value)
 Casts a BsonValue to a byte[].
 
static operator DateTime (BsonValue value)
 Casts a BsonValue to a DateTime.
 
static operator DateTime? (BsonValue value)
 Casts a BsonValue to a DateTime?.
 
static operator double (BsonValue value)
 Casts a BsonValue to a double.
 
static operator double? (BsonValue value)
 Casts a BsonValue to a double?.
 
static operator Guid (BsonValue value)
 Casts a BsonValue to a Guid.
 
static operator Guid? (BsonValue value)
 Casts a BsonValue to a Guid?.
 
static operator int (BsonValue value)
 Casts a BsonValue to an int.
 
static operator int? (BsonValue value)
 Casts a BsonValue to an int?.
 
static operator long (BsonValue value)
 Casts a BsonValue to a long.
 
static operator long? (BsonValue value)
 Casts a BsonValue to a long?.
 
static operator decimal (BsonValue value)
 Casts a BsonValue to a decimal.
 
static operator decimal? (BsonValue value)
 Casts a BsonValue to a decimal?.
 
static operator ObjectId (BsonValue value)
 Casts a BsonValue to an ObjectId.
 
static operator ObjectId? (BsonValue value)
 Casts a BsonValue to an ObjectId?.
 
static operator Regex (BsonValue value)
 Casts a BsonValue to a Regex.
 
static operator string (BsonValue value)
 Casts a BsonValue to a string.
 
static bool operator< (BsonValue lhs, BsonValue rhs)
 Compares two BsonValues.
 
static bool operator<= (BsonValue lhs, BsonValue rhs)
 Compares two BsonValues.
 
static bool operator!= (BsonValue lhs, BsonValue rhs)
 Compares two BsonValues.
 
static bool operator== (BsonValue lhs, BsonValue rhs)
 Compares two BsonValues.
 
static bool operator> (BsonValue lhs, BsonValue rhs)
 Compares two BsonValues.
 
static bool operator>= (BsonValue lhs, BsonValue rhs)
 Compares two BsonValues.
 
static BsonValue Create (object value)
 Creates a new instance of the BsonValue class.
 
static BsonValue ReadFrom (BsonReader bsonReader)
 Reads one BsonValue from a BsonReader.
 

Protected Member Functions

 BsonValue (BsonType bsonType)
 Initializes a new instance of the BsonValue class.
 
virtual bool OperatorEqualsImplementation (BsonValue rhs)
 Implementation of operator ==.
 

Properties

bool AsBoolean [get]
 Casts the BsonValue to a Boolean (throws an InvalidCastException if the cast is not valid).
 
BsonArray AsBsonArray [get]
 Casts the BsonValue to a BsonArray (throws an InvalidCastException if the cast is not valid).
 
BsonBinaryData AsBsonBinaryData [get]
 Casts the BsonValue to a BsonBinaryData (throws an InvalidCastException if the cast is not valid).
 
BsonDateTime AsBsonDateTime [get]
 Casts the BsonValue to a BsonDateTime (throws an InvalidCastException if the cast is not valid).
 
BsonDocument AsBsonDocument [get]
 Casts the BsonValue to a BsonDocument (throws an InvalidCastException if the cast is not valid).
 
BsonJavaScript AsBsonJavaScript [get]
 Casts the BsonValue to a BsonJavaScript (throws an InvalidCastException if the cast is not valid).
 
BsonJavaScriptWithScope AsBsonJavaScriptWithScope [get]
 Casts the BsonValue to a BsonJavaScriptWithScope (throws an InvalidCastException if the cast is not valid).
 
BsonMaxKey AsBsonMaxKey [get]
 Casts the BsonValue to a BsonMaxKey (throws an InvalidCastException if the cast is not valid).
 
BsonMinKey AsBsonMinKey [get]
 Casts the BsonValue to a BsonMinKey (throws an InvalidCastException if the cast is not valid).
 
BsonNull AsBsonNull [get]
 Casts the BsonValue to a BsonNull (throws an InvalidCastException if the cast is not valid).
 
BsonRegularExpression AsBsonRegularExpression [get]
 Casts the BsonValue to a BsonRegularExpression (throws an InvalidCastException if the cast is not valid).
 
BsonSymbol AsBsonSymbol [get]
 Casts the BsonValue to a BsonSymbol (throws an InvalidCastException if the cast is not valid).
 
BsonTimestamp AsBsonTimestamp [get]
 Casts the BsonValue to a BsonTimestamp (throws an InvalidCastException if the cast is not valid).
 
BsonDecimal AsBsonDecimal [get]
 Casts the BsonValue to a BsonDecimal (throws an InvalidCastException if the cast is not valid).
 
decimal AsDecimal [get]
 Casts the BsonValue to a decimal (throws an InvalidCastException if the cast is not valid).
 
BsonUndefined AsBsonUndefined [get]
 Casts the BsonValue to a BsonUndefined (throws an InvalidCastException if the cast is not valid).
 
BsonValue AsBsonValue [get]
 Casts the BsonValue to a BsonValue (a way of upcasting subclasses of BsonValue to BsonValue at compile time).
 
byte[] AsByteArray [get]
 Casts the BsonValue to a Byte[] (throws an InvalidCastException if the cast is not valid).
 
DateTime AsDateTime [get]
 Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).
 
double AsDouble [get]
 Casts the BsonValue to a Double (throws an InvalidCastException if the cast is not valid).
 
Guid AsGuid [get]
 Casts the BsonValue to a Guid (throws an InvalidCastException if the cast is not valid).
 
int AsInt32 [get]
 Casts the BsonValue to an Int32 (throws an InvalidCastException if the cast is not valid).
 
DateTime AsLocalTime [get]
 Casts the BsonValue to a DateTime in the local timezone (throws an InvalidCastException if the cast is not valid).
 
long AsInt64 [get]
 Casts the BsonValue to a Int64 (throws an InvalidCastException if the cast is not valid).
 
bool AsNullableBoolean [get]
 Casts the BsonValue to a Nullable{Boolean} (throws an InvalidCastException if the cast is not valid).
 
DateTime AsNullableDateTime [get]
 Casts the BsonValue to a Nullable{DateTime} (throws an InvalidCastException if the cast is not valid).
 
double AsNullableDouble [get]
 Casts the BsonValue to a Nullable{Double} (throws an InvalidCastException if the cast is not valid).
 
Guid AsNullableGuid [get]
 Casts the BsonValue to a Nullable{Guid} (throws an InvalidCastException if the cast is not valid).
 
int AsNullableInt32 [get]
 Casts the BsonValue to a Nullable{Int32} (throws an InvalidCastException if the cast is not valid).
 
long AsNullableInt64 [get]
 Casts the BsonValue to a Nullable{Int64} (throws an InvalidCastException if the cast is not valid).
 
decimal AsNullableDecimal [get]
 Casts the BsonValue to a Nullable{decimal} (throws an InvalidCastException if the cast is not valid).
 
ObjectId AsNullableObjectId [get]
 Casts the BsonValue to a Nullable{ObjectId} (throws an InvalidCastException if the cast is not valid).
 
ObjectId AsObjectId [get]
 Casts the BsonValue to an ObjectId (throws an InvalidCastException if the cast is not valid).
 
Regex AsRegex [get]
 Casts the BsonValue to a Regex (throws an InvalidCastException if the cast is not valid).
 
string AsString [get]
 Casts the BsonValue to a String (throws an InvalidCastException if the cast is not valid).
 
DateTime AsUniversalTime [get]
 Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).
 
BsonType BsonType [get]
 Gets the BsonType of this BsonValue.
 
bool IsBoolean [get]
 Tests whether this BsonValue is a Boolean.
 
bool IsBsonArray [get]
 Tests whether this BsonValue is a BsonArray.
 
bool IsBsonBinaryData [get]
 Tests whether this BsonValue is a BsonBinaryData.
 
bool IsBsonDateTime [get]
 Tests whether this BsonValue is a BsonDateTime.
 
bool IsBsonDocument [get]
 Tests whether this BsonValue is a BsonDocument.
 
bool IsBsonJavaScript [get]
 Tests whether this BsonValue is a BsonJavaScript.
 
bool IsBsonJavaScriptWithScope [get]
 Tests whether this BsonValue is a BsonJavaScriptWithScope.
 
bool IsBsonMaxKey [get]
 Tests whether this BsonValue is a BsonMaxKey.
 
bool IsBsonMinKey [get]
 Tests whether this BsonValue is a BsonMinKey.
 
bool IsBsonNull [get]
 Tests whether this BsonValue is a BsonNull.
 
bool IsBsonRegularExpression [get]
 Tests whether this BsonValue is a BsonRegularExpression.
 
bool IsBsonSymbol [get]
 Tests whether this BsonValue is a BsonSymbol .
 
bool IsBsonTimestamp [get]
 Tests whether this BsonValue is a BsonTimestamp.
 
bool IsBsonDecimal [get]
 Tests whether this BsonValue is a BsonDecimal.
 
bool IsBsonUndefined [get]
 Tests whether this BsonValue is a BsonUndefined.
 
bool IsDateTime [get]
 Tests whether this BsonValue is a DateTime.
 
bool IsDouble [get]
 Tests whether this BsonValue is a Double.
 
bool IsGuid [get]
 Tests whether this BsonValue is a Guid.
 
bool IsInt32 [get]
 Tests whether this BsonValue is an Int32.
 
bool IsInt64 [get]
 Tests whether this BsonValue is an Int64.
 
bool IsNumeric [get]
 Tests whether this BsonValue is a numeric value.
 
bool IsObjectId [get]
 Tests whether this BsonValue is an ObjectId .
 
bool IsString [get]
 Tests whether this BsonValue is a String.
 
virtual object RawValue [get]
 Gets the raw value of this BsonValue (or null if this BsonValue doesn't have a single scalar value).
 

Detailed Description

Represents a BSON value (this is an abstract class, see the various subclasses).

Constructor & Destructor Documentation

SequoiaDB.Bson.BsonValue.BsonValue ( BsonType  bsonType)
inlineprotected

Initializes a new instance of the BsonValue class.

Parameters
bsonTypeThe BsonType of this BsonValue.

Member Function Documentation

virtual BsonValue SequoiaDB.Bson.BsonValue.Clone ( )
inlinevirtual

Creates a shallow clone of the BsonValue (see also DeepClone).

Returns
A shallow clone of the BsonValue.

Reimplemented in SequoiaDB.Bson.BsonDocument, SequoiaDB.Bson.BsonArray, and SequoiaDB.Bson.BsonJavaScriptWithScope.

abstract int SequoiaDB.Bson.BsonValue.CompareTo ( BsonValue  other)
pure virtual
int SequoiaDB.Bson.BsonValue.CompareTypeTo ( BsonValue  other)
inline

Compares the type of this BsonValue to the type of another BsonValue.

Parameters
otherThe other BsonValue.
Returns
A 32-bit signed integer that indicates whether the type of this BsonValue is less than, equal to, or greather than the type of the other BsonValue.
static BsonValue SequoiaDB.Bson.BsonValue.Create ( object  value)
inlinestatic

Creates a new instance of the BsonValue class.

Parameters
valueA value to be mapped to a BsonValue.
Returns
A BsonValue.
virtual BsonValue SequoiaDB.Bson.BsonValue.DeepClone ( )
inlinevirtual

Creates a deep clone of the BsonValue (see also Clone).

Returns
A deep clone of the BsonValue.

Reimplemented in SequoiaDB.Bson.BsonDocument, SequoiaDB.Bson.BsonArray, and SequoiaDB.Bson.BsonJavaScriptWithScope.

bool SequoiaDB.Bson.BsonValue.Equals ( BsonValue  rhs)
inline

Compares this BsonValue to another BsonValue.

Parameters
rhsThe other BsonValue.
Returns
True if the two BsonValue values are equal.
override bool SequoiaDB.Bson.BsonValue.Equals ( object  obj)
inline

Compares this BsonValue to another object.

Parameters
objThe other object.
Returns
True if the other object is a BsonValue and equal to this one.
override int SequoiaDB.Bson.BsonValue.GetHashCode ( )
inline

Gets the hash code.

Returns
The hash code.
static SequoiaDB.Bson.BsonValue.operator bool ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a bool.

Parameters
valueThe BsonValue.
Returns
A bool.
static SequoiaDB.Bson.BsonValue.operator bool? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a bool?.

Parameters
valueThe BsonValue.
Returns
A bool?.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( bool  value)
inlinestatic

Converts a bool to a BsonValue.

Parameters
valueA bool.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( bool?  value)
inlinestatic

Converts a bool? to a BsonValue.

Parameters
valueA bool?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( byte[]  value)
inlinestatic

Converts a byte[] to a BsonValue.

Parameters
valueA byte[].
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( DateTime  value)
inlinestatic

Converts a DateTime to a BsonValue.

Parameters
valueA DateTime.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( DateTime?  value)
inlinestatic

Converts a DateTime? to a BsonValue.

Parameters
valueA DateTime?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( double  value)
inlinestatic

Converts a double to a BsonValue.

Parameters
valueA double.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( double?  value)
inlinestatic

Converts a double? to a BsonValue.

Parameters
valueA double?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( Enum  value)
inlinestatic

Converts an Enum to a BsonValue.

Parameters
valueAn Enum.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( Guid  value)
inlinestatic

Converts a Guid to a BsonValue.

Parameters
valueA Guid.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( Guid?  value)
inlinestatic

Converts a Guid? to a BsonValue.

Parameters
valueA Guid?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( int  value)
inlinestatic

Converts an int to a BsonValue.

Parameters
valueAn int.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( int?  value)
inlinestatic

Converts an int? to a BsonValue.

Parameters
valueAn int?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( long  value)
inlinestatic

Converts a long to a BsonValue.

Parameters
valueA long.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( long?  value)
inlinestatic

Converts a long? to a BsonValue.

Parameters
valueA long?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( decimal  value)
inlinestatic

Converts a decimal to a BsonValue.

Parameters
valueA decimal.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( decimal?  value)
inlinestatic

Converts a decimal? to a BsonValue.

Parameters
valueA decimal?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( ObjectId  value)
inlinestatic

Converts an ObjectId to a BsonValue.

Parameters
valueAn ObjectId.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( ObjectId value)
inlinestatic

Converts an ObjectId? to a BsonValue.

Parameters
valueAn ObjectId?.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( Regex  value)
inlinestatic

Converts a Regex to a BsonValue.

Parameters
valueA Regex.
Returns
A BsonValue.
static implicit SequoiaDB.Bson.BsonValue.operator BsonValue ( string  value)
inlinestatic

Converts a string to a BsonValue.

Parameters
valueA string.
Returns
A BsonValue.
static SequoiaDB.Bson.BsonValue.operator byte[] ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a byte[].

Parameters
valueThe BsonValue.
Returns
A byte[].
static SequoiaDB.Bson.BsonValue.operator DateTime ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a DateTime.

Parameters
valueThe BsonValue.
Returns
A DateTime.
static SequoiaDB.Bson.BsonValue.operator DateTime? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a DateTime?.

Parameters
valueThe BsonValue.
Returns
A DateTime?.
static SequoiaDB.Bson.BsonValue.operator decimal ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a decimal.

Parameters
valueThe BsonValue.
Returns
A decimal.
static SequoiaDB.Bson.BsonValue.operator decimal? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a decimal?.

Parameters
valueThe BsonValue.
Returns
A decimal?.
static SequoiaDB.Bson.BsonValue.operator double ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a double.

Parameters
valueThe BsonValue.
Returns
A double.
static SequoiaDB.Bson.BsonValue.operator double? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a double?.

Parameters
valueThe BsonValue.
Returns
A double?.
static SequoiaDB.Bson.BsonValue.operator Guid ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a Guid.

Parameters
valueThe BsonValue.
Returns
A Guid.
static SequoiaDB.Bson.BsonValue.operator Guid? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a Guid?.

Parameters
valueThe BsonValue.
Returns
A Guid?.
static SequoiaDB.Bson.BsonValue.operator int ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to an int.

Parameters
valueThe BsonValue.
Returns
An int.
static SequoiaDB.Bson.BsonValue.operator int? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to an int?.

Parameters
valueThe BsonValue.
Returns
An int?.
static SequoiaDB.Bson.BsonValue.operator long ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a long.

Parameters
valueThe BsonValue.
Returns
A long.
static SequoiaDB.Bson.BsonValue.operator long? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a long?.

Parameters
valueThe BsonValue.
Returns
A long?.
static SequoiaDB.Bson.BsonValue.operator ObjectId ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to an ObjectId.

Parameters
valueThe BsonValue.
Returns
An ObjectId.
static SequoiaDB.Bson.BsonValue.operator ObjectId? ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to an ObjectId?.

Parameters
valueThe BsonValue.
Returns
An ObjectId?.
static SequoiaDB.Bson.BsonValue.operator Regex ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a Regex.

Parameters
valueThe BsonValue.
Returns
A Regex.
static SequoiaDB.Bson.BsonValue.operator string ( BsonValue  value)
inlineexplicitstatic

Casts a BsonValue to a string.

Parameters
valueThe BsonValue.
Returns
A string.
static bool SequoiaDB.Bson.BsonValue.operator!= ( BsonValue  lhs,
BsonValue  rhs 
)
inlinestatic

Compares two BsonValues.

Parameters
lhsThe first BsonValue.
rhsThe other BsonValue.
Returns
True if the two BsonValues are not equal according to ==.
static bool SequoiaDB.Bson.BsonValue.operator< ( BsonValue  lhs,
BsonValue  rhs 
)
inlinestatic

Compares two BsonValues.

Parameters
lhsThe first BsonValue.
rhsThe other BsonValue.
Returns
True if the first BsonValue is less than the other one.
static bool SequoiaDB.Bson.BsonValue.operator<= ( BsonValue  lhs,
BsonValue  rhs 
)
inlinestatic

Compares two BsonValues.

Parameters
lhsThe first BsonValue.
rhsThe other BsonValue.
Returns
True if the first BsonValue is less than or equal to the other one.
static bool SequoiaDB.Bson.BsonValue.operator== ( BsonValue  lhs,
BsonValue  rhs 
)
inlinestatic

Compares two BsonValues.

Parameters
lhsThe first BsonValue.
rhsThe other BsonValue.
Returns
True if the two BsonValues are equal according to ==.
static bool SequoiaDB.Bson.BsonValue.operator> ( BsonValue  lhs,
BsonValue  rhs 
)
inlinestatic

Compares two BsonValues.

Parameters
lhsThe first BsonValue.
rhsThe other BsonValue.
Returns
True if the first BsonValue is greater than the other one.
static bool SequoiaDB.Bson.BsonValue.operator>= ( BsonValue  lhs,
BsonValue  rhs 
)
inlinestatic

Compares two BsonValues.

Parameters
lhsThe first BsonValue.
rhsThe other BsonValue.
Returns
True if the first BsonValue is greater than or equal to the other one.
virtual bool SequoiaDB.Bson.BsonValue.OperatorEqualsImplementation ( BsonValue  rhs)
inlineprotectedvirtual

Implementation of operator ==.

Parameters
rhsThe other BsonValue.
Returns
True if the two BsonValues are equal according to ==.

Reimplemented in SequoiaDB.Bson.BsonInt32, SequoiaDB.Bson.BsonDouble, and SequoiaDB.Bson.BsonInt64.

static BsonValue SequoiaDB.Bson.BsonValue.ReadFrom ( BsonReader  bsonReader)
inlinestatic

Reads one BsonValue from a BsonReader.

Parameters
bsonReaderThe reader.
Returns
A BsonValue.
bool SequoiaDB.Bson.BsonValue.ToBoolean ( )
inline

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

Returns
A Boolean.
double SequoiaDB.Bson.BsonValue.ToDouble ( )
inline

Converts this BsonValue to a Double.

Returns
A Double.
int SequoiaDB.Bson.BsonValue.ToInt32 ( )
inline

Converts this BsonValue to an Int32.

Returns
An Int32.
long SequoiaDB.Bson.BsonValue.ToInt64 ( )
inline

Converts this BsonValue to an Int64.

Returns
An Int64.
void SequoiaDB.Bson.BsonValue.WriteTo ( BsonWriter  bsonWriter)
inline

Writes the BsonValue to a BsonWriter.

Parameters
bsonWriterThe writer.

Property Documentation

bool SequoiaDB.Bson.BsonValue.AsBoolean
get

Casts the BsonValue to a Boolean (throws an InvalidCastException if the cast is not valid).

BsonArray SequoiaDB.Bson.BsonValue.AsBsonArray
get

Casts the BsonValue to a BsonArray (throws an InvalidCastException if the cast is not valid).

BsonBinaryData SequoiaDB.Bson.BsonValue.AsBsonBinaryData
get

Casts the BsonValue to a BsonBinaryData (throws an InvalidCastException if the cast is not valid).

BsonDateTime SequoiaDB.Bson.BsonValue.AsBsonDateTime
get

Casts the BsonValue to a BsonDateTime (throws an InvalidCastException if the cast is not valid).

BsonDecimal SequoiaDB.Bson.BsonValue.AsBsonDecimal
get

Casts the BsonValue to a BsonDecimal (throws an InvalidCastException if the cast is not valid).

BsonDocument SequoiaDB.Bson.BsonValue.AsBsonDocument
get

Casts the BsonValue to a BsonDocument (throws an InvalidCastException if the cast is not valid).

BsonJavaScript SequoiaDB.Bson.BsonValue.AsBsonJavaScript
get

Casts the BsonValue to a BsonJavaScript (throws an InvalidCastException if the cast is not valid).

BsonJavaScriptWithScope SequoiaDB.Bson.BsonValue.AsBsonJavaScriptWithScope
get

Casts the BsonValue to a BsonJavaScriptWithScope (throws an InvalidCastException if the cast is not valid).

BsonMaxKey SequoiaDB.Bson.BsonValue.AsBsonMaxKey
get

Casts the BsonValue to a BsonMaxKey (throws an InvalidCastException if the cast is not valid).

BsonMinKey SequoiaDB.Bson.BsonValue.AsBsonMinKey
get

Casts the BsonValue to a BsonMinKey (throws an InvalidCastException if the cast is not valid).

BsonNull SequoiaDB.Bson.BsonValue.AsBsonNull
get

Casts the BsonValue to a BsonNull (throws an InvalidCastException if the cast is not valid).

BsonRegularExpression SequoiaDB.Bson.BsonValue.AsBsonRegularExpression
get

Casts the BsonValue to a BsonRegularExpression (throws an InvalidCastException if the cast is not valid).

BsonSymbol SequoiaDB.Bson.BsonValue.AsBsonSymbol
get

Casts the BsonValue to a BsonSymbol (throws an InvalidCastException if the cast is not valid).

BsonTimestamp SequoiaDB.Bson.BsonValue.AsBsonTimestamp
get

Casts the BsonValue to a BsonTimestamp (throws an InvalidCastException if the cast is not valid).

BsonUndefined SequoiaDB.Bson.BsonValue.AsBsonUndefined
get

Casts the BsonValue to a BsonUndefined (throws an InvalidCastException if the cast is not valid).

BsonValue SequoiaDB.Bson.BsonValue.AsBsonValue
get

Casts the BsonValue to a BsonValue (a way of upcasting subclasses of BsonValue to BsonValue at compile time).

byte [] SequoiaDB.Bson.BsonValue.AsByteArray
get

Casts the BsonValue to a Byte[] (throws an InvalidCastException if the cast is not valid).

DateTime SequoiaDB.Bson.BsonValue.AsDateTime
get

Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).

decimal SequoiaDB.Bson.BsonValue.AsDecimal
get

Casts the BsonValue to a decimal (throws an InvalidCastException if the cast is not valid).

double SequoiaDB.Bson.BsonValue.AsDouble
get

Casts the BsonValue to a Double (throws an InvalidCastException if the cast is not valid).

Guid SequoiaDB.Bson.BsonValue.AsGuid
get

Casts the BsonValue to a Guid (throws an InvalidCastException if the cast is not valid).

int SequoiaDB.Bson.BsonValue.AsInt32
get

Casts the BsonValue to an Int32 (throws an InvalidCastException if the cast is not valid).

long SequoiaDB.Bson.BsonValue.AsInt64
get

Casts the BsonValue to a Int64 (throws an InvalidCastException if the cast is not valid).

DateTime SequoiaDB.Bson.BsonValue.AsLocalTime
get

Casts the BsonValue to a DateTime in the local timezone (throws an InvalidCastException if the cast is not valid).

bool SequoiaDB.Bson.BsonValue.AsNullableBoolean
get

Casts the BsonValue to a Nullable{Boolean} (throws an InvalidCastException if the cast is not valid).

DateTime SequoiaDB.Bson.BsonValue.AsNullableDateTime
get

Casts the BsonValue to a Nullable{DateTime} (throws an InvalidCastException if the cast is not valid).

decimal SequoiaDB.Bson.BsonValue.AsNullableDecimal
get

Casts the BsonValue to a Nullable{decimal} (throws an InvalidCastException if the cast is not valid).

double SequoiaDB.Bson.BsonValue.AsNullableDouble
get

Casts the BsonValue to a Nullable{Double} (throws an InvalidCastException if the cast is not valid).

Guid SequoiaDB.Bson.BsonValue.AsNullableGuid
get

Casts the BsonValue to a Nullable{Guid} (throws an InvalidCastException if the cast is not valid).

int SequoiaDB.Bson.BsonValue.AsNullableInt32
get

Casts the BsonValue to a Nullable{Int32} (throws an InvalidCastException if the cast is not valid).

long SequoiaDB.Bson.BsonValue.AsNullableInt64
get

Casts the BsonValue to a Nullable{Int64} (throws an InvalidCastException if the cast is not valid).

ObjectId SequoiaDB.Bson.BsonValue.AsNullableObjectId
get

Casts the BsonValue to a Nullable{ObjectId} (throws an InvalidCastException if the cast is not valid).

ObjectId SequoiaDB.Bson.BsonValue.AsObjectId
get

Casts the BsonValue to an ObjectId (throws an InvalidCastException if the cast is not valid).

Regex SequoiaDB.Bson.BsonValue.AsRegex
get

Casts the BsonValue to a Regex (throws an InvalidCastException if the cast is not valid).

string SequoiaDB.Bson.BsonValue.AsString
get

Casts the BsonValue to a String (throws an InvalidCastException if the cast is not valid).

DateTime SequoiaDB.Bson.BsonValue.AsUniversalTime
get

Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).

BsonType SequoiaDB.Bson.BsonValue.BsonType
get

Gets the BsonType of this BsonValue.

bool SequoiaDB.Bson.BsonValue.IsBoolean
get

Tests whether this BsonValue is a Boolean.

bool SequoiaDB.Bson.BsonValue.IsBsonArray
get

Tests whether this BsonValue is a BsonArray.

bool SequoiaDB.Bson.BsonValue.IsBsonBinaryData
get

Tests whether this BsonValue is a BsonBinaryData.

bool SequoiaDB.Bson.BsonValue.IsBsonDateTime
get

Tests whether this BsonValue is a BsonDateTime.

bool SequoiaDB.Bson.BsonValue.IsBsonDecimal
get

Tests whether this BsonValue is a BsonDecimal.

bool SequoiaDB.Bson.BsonValue.IsBsonDocument
get

Tests whether this BsonValue is a BsonDocument.

bool SequoiaDB.Bson.BsonValue.IsBsonJavaScript
get

Tests whether this BsonValue is a BsonJavaScript.

bool SequoiaDB.Bson.BsonValue.IsBsonJavaScriptWithScope
get

Tests whether this BsonValue is a BsonJavaScriptWithScope.

bool SequoiaDB.Bson.BsonValue.IsBsonMaxKey
get

Tests whether this BsonValue is a BsonMaxKey.

bool SequoiaDB.Bson.BsonValue.IsBsonMinKey
get

Tests whether this BsonValue is a BsonMinKey.

bool SequoiaDB.Bson.BsonValue.IsBsonNull
get

Tests whether this BsonValue is a BsonNull.

bool SequoiaDB.Bson.BsonValue.IsBsonRegularExpression
get

Tests whether this BsonValue is a BsonRegularExpression.

bool SequoiaDB.Bson.BsonValue.IsBsonSymbol
get

Tests whether this BsonValue is a BsonSymbol .

bool SequoiaDB.Bson.BsonValue.IsBsonTimestamp
get

Tests whether this BsonValue is a BsonTimestamp.

bool SequoiaDB.Bson.BsonValue.IsBsonUndefined
get

Tests whether this BsonValue is a BsonUndefined.

bool SequoiaDB.Bson.BsonValue.IsDateTime
get

Tests whether this BsonValue is a DateTime.

bool SequoiaDB.Bson.BsonValue.IsDouble
get

Tests whether this BsonValue is a Double.

bool SequoiaDB.Bson.BsonValue.IsGuid
get

Tests whether this BsonValue is a Guid.

bool SequoiaDB.Bson.BsonValue.IsInt32
get

Tests whether this BsonValue is an Int32.

bool SequoiaDB.Bson.BsonValue.IsInt64
get

Tests whether this BsonValue is an Int64.

bool SequoiaDB.Bson.BsonValue.IsNumeric
get

Tests whether this BsonValue is a numeric value.

bool SequoiaDB.Bson.BsonValue.IsObjectId
get

Tests whether this BsonValue is an ObjectId .

bool SequoiaDB.Bson.BsonValue.IsString
get

Tests whether this BsonValue is a String.

virtual object SequoiaDB.Bson.BsonValue.RawValue
get

Gets the raw value of this BsonValue (or null if this BsonValue doesn't have a single scalar value).


The documentation for this class was generated from the following file: