コード例 #1
0
        /// <returns> =0:versions are equal</returns>
        /// <returns> &gt;0:version1 is greater</returns>
        /// <returns> &lt;0:version2 is greater</returns>
        public static int CompareVersion(string v1, string v2)
        {
            var version1 = SuffixVersion.Parse(v1);
            var version2 = SuffixVersion.Parse(v2);

            return(version1.CompareTo(version2));
        }
コード例 #2
0
 private static bool IsVersionString(string str)
 {
     return(SuffixVersion.TryParse(str, out _));
 }