Class BsonMinKey
Represents the BSON MinKey value.
[Serializable]
public class BsonMinKey : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonMinKey>, IEquatable<BsonMinKey>
- Inheritance
-
BsonMinKey
- 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 BsonMinKey.
public static BsonMinKey Value { get; }
Property Value
Methods
CompareTo(BsonMinKey)
Compares this BsonMinKey to another BsonMinKey.
public int CompareTo(BsonMinKey other)
Parameters
other
BsonMinKeyThe other BsonMinKey.
Returns
- int
A 32-bit signed integer that indicates whether this BsonMinKey is less than, equal to, or greather than the other.
CompareTo(BsonValue)
Compares the BsonMinKey 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 BsonMinKey is less than, equal to, or greather than the other BsonValue.
Equals(BsonMinKey)
Compares this BsonMinKey to another BsonMinKey.
public bool Equals(BsonMinKey rhs)
Parameters
rhs
BsonMinKeyThe other BsonMinKey.
Returns
- bool
True if the two BsonMinKey values are equal.
Equals(object)
Compares this BsonMinKey to another object.
public override bool Equals(object obj)
Parameters
obj
objectThe other object.
Returns
- bool
True if the other object is a BsonMinKey and equal to this one.
GetHashCode()
Gets the hash code.
public override int GetHashCode()
Returns
- int
The hash code.
ToString()
Returns a string representation of the value.
public override string ToString()
Returns
- string
A string representation of the value.
Operators
operator ==(BsonMinKey, BsonMinKey)
Compares two BsonMinKey values.
public static bool operator ==(BsonMinKey lhs, BsonMinKey rhs)
Parameters
lhs
BsonMinKeyThe first BsonMinKey.
rhs
BsonMinKeyThe other BsonMinKey.
Returns
- bool
True if the two BsonMinKey values are equal according to ==.
operator !=(BsonMinKey, BsonMinKey)
Compares two BsonMinKey values.
public static bool operator !=(BsonMinKey lhs, BsonMinKey rhs)
Parameters
lhs
BsonMinKeyThe first BsonMinKey.
rhs
BsonMinKeyThe other BsonMinKey.
Returns
- bool
True if the two BsonMinKey values are not equal according to ==.