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