Method Equals
Equals(MongoUser, MongoUser)
Determines whether two specified MongoUser objects have the same value.
public static bool Equals(MongoUser lhs, MongoUser rhs)
Parameters
lhs
MongoUserThe first value to compare, or null.
rhs
MongoUserThe 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(MongoUser)
Determines whether this instance and another specified MongoUser object have the same value.
public bool Equals(MongoUser rhs)
Parameters
rhs
MongoUserThe MongoUser 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 MongoUser object, have the same value.
public override bool Equals(object obj)
Parameters
obj
objectThe MongoUser object to compare to this instance.
Returns
- bool
True if obj is a MongoUser object and its value is the same as this instance; otherwise, false.