Table of Contents

Operator operator ==

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

operator ==(BsonObjectId, BsonObjectId)

Compares two BsonObjectId values.

public static bool operator ==(BsonObjectId lhs, BsonObjectId rhs)

Parameters

lhs BsonObjectId

The first BsonObjectId.

rhs BsonObjectId

The other BsonObjectId.

Returns

bool

True if the two BsonObjectId values are equal according to ==.