Method Equals
Equals(MongoDBRef, MongoDBRef)
Determines whether two specified MongoDBRef objects have the same value.
public static bool Equals(MongoDBRef lhs, MongoDBRef rhs)
Parameters
lhs
MongoDBRefThe first value to compare, or null.
rhs
MongoDBRefThe second value to compare, or null.
Returns
- bool
True if the value of lhs is the same as the value of rhs; otherwise, false.
Equals(MongoDBRef)
Determines whether this instance and another specified MongoDBRef object have the same value.
public bool Equals(MongoDBRef rhs)
Parameters
rhs
MongoDBRefThe MongoDBRef object to compare to this instance.
Returns
- bool
True if the value of the rhs parameter is the same as this instance; otherwise, false.
Equals(object)
Determines whether this instance and a specified object, which must also be a MongoDBRef object, have the same value.
public override bool Equals(object obj)
Parameters
obj
objectThe MongoDBRef object to compare to this instance.
Returns
- bool
True if obj is a MongoDBRef object and its value is the same as this instance; otherwise, false.