Table of Contents

Method IsFresherThan

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

IsFresherThan(TopologyVersion, TopologyVersion)

Gets whether or not x is fresher than 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 IsFresherThan(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.