Table of Contents

Method Equals

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Equals(MongoDBRef, MongoDBRef)

Determines whether two specified MongoDBRef objects have the same value.

public static bool Equals(MongoDBRef lhs, MongoDBRef rhs)

Parameters

lhs MongoDBRef

The first value to compare, or null.

rhs MongoDBRef

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(MongoDBRef)

Determines whether this instance and another specified MongoDBRef object have the same value.

public bool Equals(MongoDBRef rhs)

Parameters

rhs MongoDBRef

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

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