Table of Contents

Operator operator ==

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

operator ==(BsonElement, BsonElement)

Compares two BsonElements.

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

Parameters

lhs BsonElement

The first BsonElement.

rhs BsonElement

The other BsonElement.

Returns

bool

True if the two BsonElements are equal (or both null).