Method Equals
Equals(BsonObjectId)
Compares this BsonObjectId to another BsonObjectId.
public bool Equals(BsonObjectId rhs)
Parameters
rhs
BsonObjectIdThe other BsonObjectId.
Returns
- bool
True if the two BsonObjectId values are equal.
Equals(object)
Compares this BsonObjectId to another object.
public override bool Equals(object obj)
Parameters
obj
objectThe other object.
Returns
- bool
True if the other object is a BsonObjectId and equal to this one.