Represents a BSON element. More...
Public Member Functions | |
BsonElement (string name, BsonValue value) | |
Initializes a new instance of the BsonElement class. | |
BsonElement | Clone () |
Creates a shallow clone of the element (see also DeepClone). | |
BsonElement | DeepClone () |
Creates a deep clone of the element (see also Clone). | |
int | CompareTo (BsonElement other) |
Compares this BsonElement to another BsonElement. | |
bool | Equals (BsonElement rhs) |
Compares this BsonElement to another BsonElement. | |
override bool | Equals (object obj) |
Compares this BsonElement to another object. | |
override int | GetHashCode () |
Gets the hash code. | |
override string | ToString () |
Returns a string representation of the value. | |
Static Public Member Functions | |
static bool | operator== (BsonElement lhs, BsonElement rhs) |
Compares two BsonElements. | |
static bool | operator!= (BsonElement lhs, BsonElement rhs) |
Compares two BsonElements. | |
static BsonElement | Create (bool condition, string name, BsonValue value) |
Creates a new instance of the BsonElement class. | |
static BsonElement | Create (string name, BsonValue value) |
Creates a new instance of the BsonElement class. | |
Properties | |
string | Name [get] |
Gets the name of the element. | |
BsonValue | Value [get, set] |
Gets or sets the value of the element. | |
Represents a BSON element.
|
inline |
Initializes a new instance of the BsonElement class.
name | The name of the element. |
value | The value of the element. |
|
inline |
Creates a shallow clone of the element (see also DeepClone).
|
inline |
Compares this BsonElement to another BsonElement.
other | The other BsonElement. |
|
inlinestatic |
Creates a new instance of the BsonElement class.
condition | Whether to create the BsonElement or return null. |
name | The name of the element. |
value | The value of the element. |
|
inlinestatic |
Creates a new instance of the BsonElement class.
name | The name of the element. |
value | The value of the element. |
|
inline |
Creates a deep clone of the element (see also Clone).
|
inline |
Compares this BsonElement to another BsonElement.
rhs | The other BsonElement. |
|
inline |
Compares this BsonElement to another object.
obj | The other object. |
|
inline |
Gets the hash code.
|
inlinestatic |
Compares two BsonElements.
lhs | The first BsonElement. |
rhs | The other BsonElement. |
|
inlinestatic |
Compares two BsonElements.
lhs | The first BsonElement. |
rhs | The other BsonElement. |
|
inline |
Returns a string representation of the value.
|
get |
Gets the name of the element.
|
getset |
Gets or sets the value of the element.