Operator operator ==

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

operator ==(MongoIdentity, MongoIdentity)

Compares two MongoIdentity values.

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

Parameters

lhs MongoIdentity

The first MongoIdentity.

rhs MongoIdentity

The other MongoIdentity.

Returns

bool

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