Core/CafeLib.Core/Support/SemVer.cs
/// <summary>
/// Compares to semantic versions by precedence. This does the same as a Equals, but ignores the build information.
/// </summary>
/// <param name="other">The semantic version.</param>
/// <returns>
/// A value that indicates the relative order of the objects being compared. 
/// The return value has these meanings: Value Meaning Less than zero 
///  This instance precedes <paramref name="other" /> in the version precedence.
///  Zero This instance has the same precedence as <paramref name="other" />. i
///  Greater than zero This instance has creator precedence as <paramref name="other" />.
/// </returns>
Compares to semantic versions by precedence. This does the same as a Equals, but ignores the build information.
Compares to semantic versions by precedence . This does the same as a Equals but ignores the build information .
private int CompareByPrecedence(SemVer other)
        {
            var r = Major.CompareTo(other.Major);
            if (r != 0) return r;
            r = Minor.CompareTo(other.Minor);
            if (r != 0) return r;
            r = Patch.CompareTo(other.Patch);
            if (r != 0) return r;
            r = CompareComponent(Prerelease, other.Prerelease, true);
            return r;
        }
private int CompareByPrecedence ( SemVer other ) { var r = Major . CompareTo ( other . Major ) ; if ( r != 0 ) return r ; r = Minor . CompareTo ( other . Minor ) ; if ( r != 0 ) return r ; r = Patch . CompareTo ( other . Patch ) ; if ( r != 0 ) return r ; r = CompareComponent ( Prerelease , other . Prerelease , true ) ; return r ; }
Compares to semantic versions by precedence.
Compares to semantic versions by precedence .
A value that indicates the relative order of the objects being compared.
The return value has these meanings: Value Meaning Less than zero
This instance precedes  in the version precedence.
Zero This instance has the same precedence as . i
Greater than zero This instance has creator precedence as .
A value that indicates the relative order of the objects being compared . The return value has these meanings : Value Meaning Less than zero This instance precedes in the version precedence . Zero This instance has the same precedence as . i Greater than zero This instance has creator precedence as .
other
SemVer
The semantic version.
The semantic version .