예제 #1
0
 /// <summary>
 /// Compare this object to another <see cref="VersionNodePair"/> based on version.
 /// </summary>
 /// <param name="other">The <see cref="VersionNodePair"/> to compare this object to.</param>
 /// <returns>1 if this object has a higher target version than other; -1 if this object has a lower target
 /// version; 0 if the versions are equal.</returns>
 public int CompareTo(VersionNodePair other)
 {
     return(other == null
         ? 1
         : DatabaseVersion.Compare(Version, other.Version));
 }
예제 #2
0
 /// <summary>
 /// Compare this object to another <see cref="UpgradePathNode"/> based on the target version of
 /// the each one's step.
 /// </summary>
 /// <param name="other">The <see cref="UpgradePathNode"/> to compare this object to.</param>
 /// <returns>1 if this step has a higher target version than other; -1 if this step has a lower
 /// target version; 0 if the target versions are equal.</returns>
 public int CompareTo(UpgradePathNode other)
 {
     return(other == null
         ? 1
         : DatabaseVersion.Compare(StepGroup.TargetVersion, other.StepGroup.TargetVersion));
 }