Table of Contents

Method Equals

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Equals(ObjectId)

Compares this ObjectId to another ObjectId.

public bool Equals(ObjectId rhs)

Parameters

rhs ObjectId

The other ObjectId.

Returns

bool

True if the two ObjectIds are equal.

Equals(object)

Compares this ObjectId to another object.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

True if the other object is an ObjectId and equal to this one.