Table of Contents

Method Equals

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Equals(MongoUser, MongoUser)

Determines whether two specified MongoUser objects have the same value.

public static bool Equals(MongoUser lhs, MongoUser rhs)

Parameters

lhs MongoUser

The first value to compare, or null.

rhs MongoUser

The 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 MongoUser

The 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 object

The 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.