Table of Contents

Method Equals

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Equals(BsonObjectId)

Compares this BsonObjectId to another BsonObjectId.

public bool Equals(BsonObjectId rhs)

Parameters

rhs BsonObjectId

The other BsonObjectId.

Returns

bool

True if the two BsonObjectId values are equal.

Equals(object)

Compares this BsonObjectId to another object.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

True if the other object is a BsonObjectId and equal to this one.