Table of Contents

Method IsFresherThanOrEqualTo

Namespace
MongoDB.Driver.Core.Servers
Assembly
MongoDB.Driver.dll

IsFresherThanOrEqualTo(TopologyVersion, TopologyVersion)

Gets whether or not x is fresher than or Equal to y. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsFresherThan(b) (a "<" b) does not imply !b.IsFresherThan(a) (b ">" a) See CompareTopologyVersion(TopologyVersion, TopologyVersion) for more information. In the case that this.Equals(y), y will be considered to be fresher.

public static bool IsFresherThanOrEqualTo(TopologyVersion x, TopologyVersion y)

Parameters

x TopologyVersion

The first TopologyVersion.

y TopologyVersion

The other TopologyVersion.

Returns

bool

Whether or not this TopologyVersion is fresher than y.