Table of Contents

Class SemVerComparer

Namespace
Ubiquity.NET.Versioning
Assembly
Ubiquity.NET.Versioning.dll

Static class to host comparison logic for various parts of a SemVer

public static class SemVerComparer
Inheritance
SemVerComparer
Inherited Members

Remarks

Sadly, the SemVer specs are silent on the point of case sensitivity. Various implementations have taken different approaches to doing that. Generally, those choices were along OS platform lines. With multiple cross platform runtimes and support that becomes a real nightmare as ignoring the issue and how it impacts ordering can have VERY surprising results. Thus, this library requires explicit selection of the behavior for comparisons.

important

There is NO support for mixed comparisons (Comparisons where one of the versions uses case-sensitivity but the other does not). Such comparisons are undefined. There is no way to know what the ordering is supposed to be for each. An application MUST ensure it is ordering versions in a consistent fashion and DOCUMENT what that is.

Properties

SemVer

Gets a comparer that compares two SemVer instances using case insensitive comparison for AlphaNumeric Identifiers