Table of Contents

Method Equals

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.Legacy.dll

Equals(MongoGridFSFileInfo, MongoGridFSFileInfo)

Determines whether two specified MongoGridFSFileInfo objects have the same value.

public static bool Equals(MongoGridFSFileInfo lhs, MongoGridFSFileInfo rhs)

Parameters

lhs MongoGridFSFileInfo

The first value to compare, or null.

rhs MongoGridFSFileInfo

The second value to compare, or null.

Returns

bool

True if the value of lhs is the same as the value of rhs; otherwise, false.

Equals(MongoGridFSFileInfo)

Determines whether this instance and another specified MongoGridFSFileInfo object have the same value.

public bool Equals(MongoGridFSFileInfo rhs)

Parameters

rhs MongoGridFSFileInfo

The MongoGridFSFileInfo object to compare to this instance.

Returns

bool

True if the value of the rhs parameter is the same as this instance; otherwise, false.

Equals(object)

Determines whether this instance and a specified object, which must also be a MongoGridFSFileInfo object, have the same value.

public override bool Equals(object obj)

Parameters

obj object

The MongoGridFSFileInfo object to compare to this instance.

Returns

bool

True if obj is a MongoGridFSFileInfo object and its value is the same as this instance; otherwise, false.