Operator operator ==
operator ==(BsonElement, BsonElement)
Compares two BsonElements.
public static bool operator ==(BsonElement lhs, BsonElement rhs)
Parameters
lhs
BsonElementThe first BsonElement.
rhs
BsonElementThe other BsonElement.
Returns
- bool
True if the two BsonElements are equal (or both null).