Class BsonUndefined
Represents the BSON undefined value.
[Serializable]
public class BsonUndefined : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonUndefined>, IEquatable<BsonUndefined>
- Inheritance
-
BsonUndefined
- Implements
- Inherited Members
- Extension Methods
Properties
BsonType
Gets the BsonType of this BsonValue.
public override BsonType BsonType { get; }
Property Value
Value
Gets the singleton instance of BsonUndefined.
public static BsonUndefined Value { get; }
Property Value
Methods
CompareTo(BsonUndefined)
Compares this BsonUndefined to another BsonUndefined.
public int CompareTo(BsonUndefined other)
Parameters
other
BsonUndefinedThe other BsonUndefined.
Returns
- int
A 32-bit signed integer that indicates whether this BsonUndefined is less than, equal to, or greather than the other.
CompareTo(BsonValue)
Compares the BsonUndefined to another BsonValue.
public override int CompareTo(BsonValue other)
Parameters
other
BsonValueThe other BsonValue.
Returns
- int
A 32-bit signed integer that indicates whether this BsonUndefined is less than, equal to, or greather than the other BsonValue.
Equals(BsonUndefined)
Compares this BsonUndefined to another BsonUndefined.
public bool Equals(BsonUndefined rhs)
Parameters
rhs
BsonUndefinedThe other BsonUndefined.
Returns
- bool
True if the two BsonUndefined values are equal.
Equals(object)
Compares this BsonUndefined to another object.
public override bool Equals(object obj)
Parameters
obj
objectThe other object.
Returns
- bool
True if the other object is a BsonUndefined and equal to this one.
GetHashCode()
Gets the hash code.
public override int GetHashCode()
Returns
- int
The hash code.
ToBoolean()
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
public override bool ToBoolean()
Returns
- bool
A Boolean.
ToString()
Returns a string representation of the value.
public override string ToString()
Returns
- string
A string representation of the value.
Operators
operator ==(BsonUndefined, BsonUndefined)
Compares two BsonUndefined values.
public static bool operator ==(BsonUndefined lhs, BsonUndefined rhs)
Parameters
lhs
BsonUndefinedThe first BsonUndefined.
rhs
BsonUndefinedThe other BsonUndefined.
Returns
- bool
True if the two BsonUndefined values are equal according to ==.
operator !=(BsonUndefined, BsonUndefined)
Compares two BsonUndefined values.
public static bool operator !=(BsonUndefined lhs, BsonUndefined rhs)
Parameters
lhs
BsonUndefinedThe first BsonUndefined.
rhs
BsonUndefinedThe other BsonUndefined.
Returns
- bool
True if the two BsonUndefined values are not equal according to ==.